20165210 Java eighth week learning summary

20165210 Java eighth week learning summary

learning material content

- Chapter 12 Learning Summary

  1. process and thread
  • Operating Systems and Processes
  1. Threads in Java
  • Java's Multithreading Mechanism
  • main thread
  • Thread state and life cycle
1. 新建
2. 运行
3. 中断
4. 死亡
  1. Thread class and thread creation
  • Use a subclass of Thread
  • Use the Thread class
  • The relationship between the target object and the thread
  • ```
  1. The target object and the thread are completely decoupled
  2. target object composition thread
    ```
  • About the number of times the run method is started
  1. Common methods of threading
1. start()
2. run ()
3. sleep (int millsecond)
4. isAlive ()
5. currentThread ()
6. interrupt ()
  1. thread synchronization
  2. coordinating synchronized threads
  3. thread union
  4. 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.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324634759&siteId=291194637