___________ 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.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *