Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

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

  • Last Updated : 02 Nov, 2021

​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
Recommended Articles
Page :

Start Your Coding Journey Now!