20165229 Eighth week study summary
Others
2022-04-21 22:11:08
views: 0
Eighth week study summary
Chapter 12 Learning Summary
- A thread is a smaller unit of execution than a process. During its execution, a process can generate multiple threads to form multiple execution threads, and each thread, that is, each thread, also has its own process of generation, existence and extinction.
- The thread scheduler in the Java virtual machine is responsible for managing threads. In a system that uses time slices, each thread will have the opportunity to obtain full use of the CPU. After the thread uses the CPU resources, even if the thread does not complete all its own operations, Java The scheduler will also interrupt the program of the current thread and switch the use of the CPU to the next thread waiting in the queue. The current thread will wait for the next round of CPU resources, and then resume execution from the interrupted place.
- After the thread is created, it only occupies the memory resources. If there is no such thread in the threads managed by the JVM, the thread must call the
start()
method to notify the JVM.
learning progress bar
learning progress bar
Target |
5000 lines |
30 articles |
400 hours |
|
the first week |
30/30 |
1/1 |
8/8 |
|
the second week |
300/330 |
2/3 |
8/16 |
|
The third week |
636/936 |
1/4 |
8/24 |
|
the fourth week |
555/1491 |
2/6 |
10/34 |
|
fifth week |
874/2365 |
1/7 |
8/42 |
|
Week 6 |
1048/2365 |
2/9 |
10/52 |
|
Week 7 |
1516/3881 |
1/10 |
14/66 |
|
eighth week |
1192/5073 |
3/13 |
8/74 |
|
Origin http://43.154.161.224:23101/article/api/json?id=324644683&siteId=291194637