O'Reilly logo

Programmer's Guide to Java™ Certification, A: A Comprehensive Primer, Second Edition by Rolf W. Rasmussen, Khalid A. Mughal

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Section 7: Threads (Chapter 9)

  • Write code to define, instantiate and start new threads using both java.lang.Thread and java.lang.Runnable.

  • Recognize conditions that might prevent a thread from executing.

  • Write code using synchronized wait, notify and notifyAll to protect against concurrent access problems and to communicate between threads.

  • Define the interaction among threads and object locks when executing synchronized wait, notify or notifyAll.

Study Notes

Both 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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required