What is a mutex in concurrency control?
18 views
- A data structure used to synchronize access to shared resources
- A hardware component used to control access to shared resources
- A synchronization primitive used to protect critical regions (Correct Answer)
- A software component used to manage threads
Explanation
Answer: c. A synchronization primitive used to protect critical regions
Explanation: A mutex is a synchronization primitive used to protect critical regions in a multi-threaded program. It provides mutual exclusion to ensure that only one thread can access the critical region at a time.