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.

Answer: D. Neither (i) nor (ii)In the readers-writers problem, multiple readers can access shared data simultaneously without conflict, making statement (i) false. Semaphores are a standard…

  1. A.

    Only (i)

  2. B.

    Only (ii)

  3. C.

    Both (i) and (ii)

  4. D.

    Neither (i) nor (ii)

Attempted by 616 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.

A video solution is available for this question — log in and enroll to watch it.

Explore the full course: Uppsc Polytechnic Lecturer 2025 Cs

Loading lesson…