Self-Review Exercises
23.1 Fill in the blanks in each of the following statements:
-
A thread enters the terminated state when .
-
To pause for a designated number of milliseconds and resume execution, a thread should call method of class .
-
A runnable thread can enter the state for a specified interval of time.
-
At the operating-system level, the runnable state actually encompasses two separate states, and .
-
Runnables are executed using a class that implements the interface. -
ExecutorServicemethod prevents theExecutorServicefrom accepting new tasks, but continues executing tasks that have already been submitted. ...
-
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access