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:

This question was previously asked in
UGC NET Computer Science (Paper 2) Dec 2018 Paper
View all UGC NET Papers >
  1. 1 only
  2. Both 2 and 3
  3. 2 only
  4. 3 only

Answer (Detailed Solution Below)

Option 1 : 1 only
Free
UGC NET Paper 1: Held on 21st August 2024 Shift 1
13 K Users
50 Questions 100 Marks 60 Mins

Detailed Solution

Download Solution PDF

In Readers-Writers problem, more than one Reader is allowed to read simultaneously but if a Writer is writing then no other writer or any reader can have simultaneous access to that shared object. So, Writers are given exclusive access to shared objects.

Hence option 1 is correct

Latest UGC NET Updates

Last updated on Jun 22, 2025

-> The UGC Net Admit Card has been released on its official website today.

-> The UGC NET June 2025 exam will be conducted from 25th to 29th June 2025.

-> The UGC-NET exam takes place for 85 subjects, to determine the eligibility for 'Junior Research Fellowship’ and ‘Assistant Professor’ posts, as well as for PhD. admissions.

-> The exam is conducted bi-annually - in June and December cycles.

-> The exam comprises two papers - Paper I and Paper II. Paper I consists of 50 questions and Paper II consists of 100 questions. 

-> The candidates who are preparing for the exam can check the UGC NET Previous Year Papers and UGC NET Test Series to boost their preparations.

More Critical Section Questions

More Concurrency and Synchronization Questions

Get Free Access Now
Hot Links: teen patti all teen patti noble teen patti win teen patti classic