Multiple Choice
Which of the following statements is correct?
A) If a thread sleeps after acquiring a lock, it blocks all other threads that want to use the same lock.
B) When a thread calls await, it is simply deactivated in the same way as a thread that reaches the end of its time slice.
C) A thread pool is designed to encapsulate the concept of a sequence of statements that can run in parallel with other tasks, without equating it with the concept of a thread, a potentially expensive resource that is managed by the operating system.
D) Under no circumstances should you terminate a running thread.
Correct Answer:

Verified
Correct Answer:
Verified
Q68: In the initial release of the Java
Q69: The _ method is called by a
Q70: The _ method does not actually cause
Q71: Consider an old fashioned telephone booth that
Q72: Which of the following is a characteristic
Q74: A GUI should be responsive to the
Q75: Assume three threads share a BankAccount object
Q76: Which of the following class declarations could
Q77: Examine the SharedData class shown below.Suppose two
Q78: Given a two-CPU machine and four threads,