Q Semaphores are used to solve the problem of _________?

  • A Race condition
  • B Mutual exclusion
  • C Critical section
  • D None of these

MCQs Details

A semaphore is a variable or abstract data type used to control access to a common resource by multiple threads and avoid critical section problems in a concurrent system such as a multitasking operating system.