Multiple Choice
Which of the following scenarios may not always cause a deadlock among two threads?
I Thread one is in an infinite loop and has acquired a lock
II Both threads are in an infinite loop, and one thread has acquired a lock
III Both threads are in an infinite loop, and both threads have acquired locks
A) I
B) II
C) III
D) I, II or III
Correct Answer:

Verified
Correct Answer:
Verified
Q9: Which method do you call to make
Q20: The _ method stops the current thread
Q22: If a thread sleeps after acquiring a
Q24: What course of action should be followed
Q25: Suppose thread one is downloading a large
Q28: Under what conditions are locks unnecessary for
Q29: Exactly when does a thread finish in
Q31: Given a single CPU and four threads,
Q62: Each thread runs for a short amount
Q68: In the initial release of the Java