Multiple Choice
The term "starvation" means a situation where when one thread runs continuously, while another thread never does.Consider the following three conditions (list I,II,III) .Which set of these conditions is sufficient to cause starvation?
i.Thread one is in an infinite loop
II.Thread one possesses a lock and does not unlock it, but thread two requires the lock
III.Thread one requires a lock, but thread two possesses the lock
A) Only I
B) Only II
C) I and II
D) I and III
Correct Answer:

Verified
Correct Answer:
Verified
Q48: What should be done to get the
Q49: Class MyClass has two ReentrantLock objects, myLock1
Q50: Which argument(s) present(s) the best case(s) for
Q51: In which method are the tasks that
Q52: Which of the following definitely indicates that
Q54: _ allow a thread to temporarily release
Q55: To start a thread, you should first
Q56: The thread that calls signalAll must own
Q57: Suppose thread one is downloading a 800KB
Q58: The _ interface is designed to encapsulate