Solved

A Key Difference Between Reentrant Locks and JAVA Monitor's Synchronized

Question 27

Multiple Choice

A key difference between Reentrant locks and JAVA monitor's synchronized statements is that


A) there is a possibility of deadlock when using a monitor while deadlock cannot occur when using reentrant locks.
B) a reentrant lock favors granting the lock to the longest-waiting thread while there is no specification for the order in which threads in the wait set for an object lock.
C) multiple processes may own a reentrant lock at the same time while at most one process may execute inside a synchronized method at any time.
D) at most one process may own a reentrant lock, while multiple processes may execute inside a synchronized method at any time.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions