Open In App
Related Articles

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

Improve
Improve
Improve
Like Article
Like
Save Article
Save
Report issue
Report
​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

Last Updated : 02 Nov, 2021
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads