...
Database-Management-System
August 29, 2024
Nielit Scientist-C 2016 march
August 29, 2024
Database-Management-System
August 29, 2024
Nielit Scientist-C 2016 march
August 29, 2024

Database-Management-System

Question 798

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:

Code

A
1 only
B
Both 2 and 3
C
2 only
D
3 only
Question 798 Explanation: 
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.
Correct Answer: A
Question 798 Explanation: 
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.

Leave a Reply

Your email address will not be published. Required fields are marked *