How does thread synchronization occurs inside a monitor?5
1040 5b5cc7cee4d2b41977751112
Q: How does thread synchronization occurs inside a monitor?
- Show Answer
- Workspace
- Discuss
Answer :
Explanation :
A Monitor defines a lock and condition variables for managing concurrent access to shared data. The monitor uses the lock to ensure that only a single thread inactive in the monitor code at any time. A monitor allows only one thread to lock an object at once.
Similar Questions
Since Nithya and Suganya exchange places, so Rita’s new position is the same as Monika’s earlier position. This position is 17th from the right and 10th from the left. Therefore Number of girls in the row = (16 + 1 + 9) = 26.