Source code debug thread start0 method, step-by-step debug, java openjdk source code analysis, advanced

catalogue 1 why look at this source code 2. debug steps 1.1 since it is a thread class, let's see thread Find in C 1.2 since it is jvm, it is in jvm Line 2817 interrupted on CPP 3 we jump to line 2851 4. It can be seen that this is a construction method of javaThread. Let's go into thread CPP 1570 line 5java_ Where is the start method? o ...

Posted by the-botman on Tue, 08 Mar 2022 16:49:35 +0100

wait and notify principles

1.wait and notify 1.1 short story 1.2 principle 1. The current thread must own the monitor (lock) of this object.2. When the current thread calls the wait () method, the thread will release the ownership of the lock and wait3. Until another thread notifies the thread waiting on the object's monitor (lock) to wake up by calling the not ...

Posted by mu-ziq on Tue, 08 Mar 2022 16:13:44 +0100

Java compression can be so optimized! The news is so exhilarating that everyone is celebrating and spreading it to the rest of the world

background Recently, the function of data export is being done. Since batch export is supported and the exported files are up to 3GB, it is decided to compress when exporting the final results first day java compression, emmm The first thought is java util. Zip the following APIs, directly to the code: /** * Batch compressed file v1 0 * ...

Posted by baitubai on Tue, 08 Mar 2022 15:19:29 +0100

JavaScript personal learning notes Summary - jQuery

contentwebsiteJavaScript personal learning notes Summary - quick starthttps://blog.csdn.net/weixin_50594210/article/details/115112096?spm=1001.2014.3001.5501JavaScript personal learning notes Summary - functionhttps://blog.csdn.net/weixin_50594210/article/details/115113081?spm=1001.2014.3001.5501JavaScript personal learning notes Summary - ...

Posted by jvanv8 on Tue, 08 Mar 2022 14:32:37 +0100

Several commonly used design patterns: design principle, strategy pattern and observer pattern

Several commonly used design patterns (I): design principle, strategy pattern and observer pattern Core: reuse - resist change Object oriented design principles: 1. Dependency Inversion Principle (DIP) High level modules (stable) should not rely on low-level modules (change), but both should rely on abstraction (stable). Abstract (st ...

Posted by jmicozzi on Tue, 08 Mar 2022 14:30:24 +0100

JavaScript personal learning notes Summary - error handling

contentwebsiteJavaScript personal learning notes Summary - quick starthttps://blog.csdn.net/weixin_50594210/article/details/115112096?spm=1001.2014.3001.5501JavaScript personal learning notes Summary - functionhttps://blog.csdn.net/weixin_50594210/article/details/115113081?spm=1001.2014.3001.5501JavaScript personal learning notes Summary - ...

Posted by lookielookies on Tue, 08 Mar 2022 13:32:42 +0100

@Usage and examples of Async

@Usage and examples of Async annotations background In general, the method calls in Java are synchronous calls. For example, the B method is invoked in the A method. After the B method is invoked by A, the B method must wait for execution and return, and the A method can continue to execute. A problem that is easy to occur is that if m ...

Posted by kenyabob on Tue, 08 Mar 2022 13:00:29 +0100

Android MVVM architecture construction

Although MVVM architecture was also used in previous projects, I was not familiar with the whole MVVM architecture because I didn't build the overall framework myself, so I built and implemented the MVVM architecture myself this time. The components used by MVVM architecture include ViewModel, LiveData, ViewBinding/DataBinding, etc. these comp ...

Posted by impulse() on Tue, 08 Mar 2022 12:51:33 +0100

Time conversion - rectangular area intersection

Blue bridge practice BASIC-14-BASIC-18 (time conversion - rectangular area intersection) BASIC14: time conversion Problem description Given a time t in seconds, it is required to use the format of "::" to represent this time. Represents time, minutes, and seconds. They are all integers without leading "0". For example, if ...

Posted by millercj on Tue, 08 Mar 2022 12:38:00 +0100

Introduction to the latest Java foundation in 2021

Introduction to the latest Java foundation in 2021 (3) The third chapter is coming. This time it mainly introduces classes and objects, encapsulation and construction methods preface If you don't say much, go straight to the dry goods 1, Object oriented thought 1.1 overview of object-oriented thought Java language is an object-ori ...

Posted by Theophilus on Tue, 08 Mar 2022 12:04:04 +0100