Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 13. Threads

13. Threads

Exam Objectives

4.1Write code to define, instantiate, and start new threads using both java.lang.Thread and java.lang.Runnable.
4.2Recognize the states in which a thread can exist, and identify ways in which a thread can transition from one state to another.
4.3Given a scenario, write code that makes appropriate use of object locking to protect static or instance variables from concurrent access problems.
4.4Given a scenario, write code that makes appropriate use of wait, notify, or notifyAll.


Supplementary Objectives

  • Recognize conditions that might prevent a thread from executing.

  • Write code to start and stop a thread.

  • Understand aspects of thread behavior that are not guaranteed.