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.
- A.
Only (i)
- B.
Only (ii)
- C.
Both (i) and (ii)
- 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.