...
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.
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!