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:

Verified
Correct Answer:
Verified
Q22: In the structure of the producer process
Q23: A(n) _ is a sequence of read-write
Q24: A thread using POSIX condition variables, a
Q25: Dispatcher objects in Windows are used for
Q26: To lock the kernel on a single
Q28: Explain how Linux manages race conditions on
Q29: POSIX unnamed semaphores can be shared either
Q30: In JAVA, calling a synchronized method always
Q31: Explain the difference between the first readers-writers
Q32: An advantage of using transactional memory is