Question discussion

The key advantage of using a semaphore over a simple shared flag variable for process synchronization is that semaphore operations are:

322Medium DSSSB TGT Computer Science 0 replies 1 views
0
The key advantage of using a semaphore over a simple shared flag variable for process synchronization is that semaphore operations are:
  • AFaster to execute
  • BAtomic, preventing a race condition during the check-and-update step
  • CUsable only by the kernel
  • DRestricted to binary (0/1) values only
Correct answer: B

Discussion 0

Nobody has replied yet. Start the discussion!