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
Q1: A notify( ) operation in Java monitors
A)
Q3: In an asymmetric solution for the dining
Q4: Which of the following is true about
Q5: POSIX named semaphores
A) can easily be used
Q6: In a single processor system running Windows,
Q7: When the state for a dispatcher object
Q8: A reader-writer lock is useful when
A) there
Q9: In the monitor solution for dining-philosophers problem
Q10: In JAVA, when a thread calls wait(
Q11: Emergence of multicore systems has put greater
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents