Section 7: Threads (Chapter 9)
Study NotesBoth java.lang.Thread and java.lang.Runnable can be used to create new threads. A thread can exist in one of several states. Various method calls and events may cause a thread to go from one state to another. Several conditions may prevent a thread from executing. Most questions related to thread control concern using and implementing threads (through the Thread class or Runnable interface) and the use of the notify() and wait() methods . A good understanding of object locks and synchronized code is required. Note the difference between the notify() and notifyAll() methods. |