___________ is a synchronization mechanism that allows threads to wait until a condition is...
- Semaphore
- Mutex
- Monitor
- Barrier
Monitor: This option refers to a synchronization construct that allows threads to wait until a condition is true before proceeding. Monitors provide a higher level of abstraction compared to mutexes and semaphores, as they encapsulate both the data being protected and the synchronization mechanisms within a single construct. They help in preventing race conditions and ensuring thread safety in concurrent programming.
Loading...
Related Quiz
- FTP uses two separate ports: ___________ for data transfer and ___________ for control information.
- What are the differences between ES5 and ES6 (ECMAScript 2015)?
- What is the key difference between a tree and a graph?
- CSS ___________ allows you to define a set of styles to be applied to different devices or media types.
- Inheritance in OOP allows a class to ___________ properties and behaviors of another class.