Which are ways that a thread can be blocked?
i.when it is sleeping
II.waiting for a lock to be available
III.waiting after calling the await method
A) Only I
B) I and II
C) I and III
D) I, II, and III
Correct Answer:
Verified
Q59: Examine the SharedData class shown below.Suppose two
Q60: Which phrase best describes the purpose of
Q61: Consider an old fashioned telephone booth that
Q62: A GUI should be responsive to the
Q63: Calling the wait method in synchronized code
Q65: When is it a good idea to
Q66: Under what conditions are locks unnecessary for
Q67: Assume three threads share a BankAccount object
Q68: What happens when a thread calls the
Q69: lock objects ensure that shared data are
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents