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 synchronizationWhen a thread acquires a semaphore to enter a critical section, it ensures mutual exclusion by preventing other threads from accessing the shared resource…

  1. A.

    Wait-free synchronization

  2. B.

    Lock-free synchronization

  3. C.

    Critical section synchronization

  4. 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

Loading lesson…