Which of the following statements is/are true about readers-writers…

2022

Which of the following statements is/are true about readers-writers synchronisation problem?
(i) If two readers access the shared data simultaneously, it may face problems.
(ii) It cannot be solved using semaphores.

  1. A.

    Only (i)

  2. B.

    Only (ii)

  3. C.

    Both (i) and (ii)

  4. D.

    Neither (i) nor (ii)

Attempted by 215 students.

Show answer & explanation

Correct answer: D

In the readers-writers problem, multiple readers can access shared data simultaneously without conflict, making statement (i) false. Semaphores are a standard mechanism used to implement synchronization for this problem, so statement (ii) is also false. Therefore, neither statement is correct.

Explore the full course: Up Lt Grade Assistant Teacher 2025