while in the case cpu handles only one thread, the thread is the case cpu shelved following five.
1. there is a higher-priority process.
2. executed.
3. Wait I / O.
4. give up.
The time slice is exhausted.
In the case of multi-threaded operation, the completion of each thread in the order uncertain.
Properties in the console can be viewed using jconsole thread
Multithreading Notes 1
Guess you like
Origin blog.csdn.net/rushrush1/article/details/104660210
Recommended
Ranking