Skip to content
Related Articles
Get the best out of our app
GeeksforGeeks App
Open App
geeksforgeeks
Browser
Continue

Related Articles

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

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

​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
Last Updated : 02 Nov, 2021
Like Article
Save Article
Similar Reads