Multiple Choice
"Livelock" occurs when one thread runs continuously, while another thread never does. Which of the following is sufficient to cause livelock?
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) I
B) II
C) I and II
D) I and III
Correct Answer:

Verified
Correct Answer:
Verified
Q31: Given a single CPU and four threads,
Q32: Examine the SharedData class shown below. Suppose
Q33: Suppose thread one is downloading a 800KB
Q34: Stale data occurs in multi-CPU machines when
Q37: Examine the SharedData class shown below. Suppose
Q41: Consider the addFirst method of the LinkedList
Q44: When a thread is interrupted, the most
Q51: In which method are the tasks that
Q70: The _ method does not actually cause
Q79: What is likely to be true when