UGC-NET | UGC NET CS 2018 Dec – II | Question 3

​To overcome difficulties in Readers-Writers problem, which of the following statement/s is/are true ?

  1. Writers are given exclusive access to shared objects
  2. Readers are given exclusive access to shared objects
  3. Both readers and writers are given exclusive access to shared objects.

Choose the correct answer from the code given below:

(A) 1 only
(B) Both 2 and 3
(C) 2 only
(D) 3 only


Answer: (A)

Explanation: In Readers-Writers Problem, since readers do not modify values, so these can be allowed with other readers. But writers are given exclusive access to shared objects.

Only statement (1) is correct.

Quiz of this Question

My Personal Notes arrow_drop_up
Article Tags :

Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.