What is the correct order of operations for protecting a critica

  • 2023-11-15 03:41:10
  • OS

What is the correct order of operations for protecting a critical section using mutex locks?

A.release() followed by acquire()

B.acquire() followed by release()

C.wait() followed by signal()

D.signal() followed by wait()

正确答案是B