Self-Review Exercises

23.1Fill in the blanks in each of the following statements:
  1. C and C++ are________-threaded languages, whereas Java is a(n)________-threaded language.

  2. A thread enters the terminated state when.________

  3. To pause for a designated number of milliseconds and resume execution, a thread should call method________of class________.

  4. Method________of class Condition moves a single thread in an object’s waiting state to the runnable state.

  5. Method________of class Condition moves every thread in an object’s waiting state to the runnable state.

  6. A(n)________thread enters the________state when it completes its task or otherwise terminates.

  7. A runnable thread can enter the________state for a specified interval of time.

  8. At the operating system level, ...

Get Java™ How to Program, Seventh Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.