20165210 Java eighth week learning summary
learning material content
- Chapter 12 Learning Summary
- process and thread
- Operating Systems and Processes
- Threads in Java
- Java's Multithreading Mechanism
- main thread
- Thread state and life cycle
1. 新建
2. 运行
3. 中断
4. 死亡
- Thread class and thread creation
- Use a subclass of Thread
- Use the Thread class
- The relationship between the target object and the thread
- ```
- The target object and the thread are completely decoupled
- target object composition thread
```
- About the number of times the run method is started
- Common methods of threading
1. start()
2. run ()
3. sleep (int millsecond)
4. isAlive ()
5. currentThread ()
6. interrupt ()
- thread synchronization
- coordinating synchronized threads
- thread union
GUI thread
code hosting
Summary of the wrong questions in last week's class test
comprehension
Although the code this week is not too much, the content is still very difficult, and the content of this week's paired learning is also very difficult, and we have to study hard.