The process of acquiring a semaphore and entering a critical section while…
2025
The process of acquiring a semaphore and entering a critical section while ensuring mutual exclusion is often called:
Answer: C. Critical section synchronization — When a thread acquires a semaphore to enter a critical section, it ensures mutual exclusion by preventing other threads from accessing the shared resource…
- A.
Wait-free synchronization
- B.
Lock-free synchronization
- C.
Critical section synchronization
- D.
Barrier synchronization
Attempted by 250 students.
Show answer & explanation
Correct answer: C
When a thread acquires a semaphore to enter a critical section, it ensures mutual exclusion by preventing other threads from accessing the shared resource simultaneously. This mechanism coordinates thread execution to maintain data consistency, which is the core purpose of critical section synchronization.
Explore the full course: Bihar Stet Paper Ii Computer Science