Self-Review Exercises
23.1 Fill in the blanks in each of the following statements:
a) A thread enters the terminated state when _________.
b) To pause for a designated number of milliseconds and resume execution, a thread should call method _________ of class _________.
c) A runnable thread can enter the _________ state for a specified interval of time.
d) At the operating-system level, the runnable state actually encompasses two separate states, _________ and _________.
e) Runnables are executed using a class that implements the _________ interface.
f) ExecutorService method _________ ends each thread in an ExecutorService as soon as it finishes executing its current Runnable, if any.
g) In a(n) _________ relationship, the _________ generates ...
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