Database-Management-System
August 29, 2024Nielit Scientist-C 2016 march
August 29, 2024Database-Management-System
Question 798 |
To overcome difficulties in Readers-Writers problem, which of the following statement/s is/are true?
- Writers are given exclusive access to shared objects
- Readers are given exclusive access to shared objects
- Both readers and writers are given exclusive access to shared objects.
Choose the correct answer from the code given below:
Code
1 only | |
Both 2 and 3 | |
2 only | |
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.
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.
So, Writers are given exclusive access to shared objects.
Subscribe
Login
0 Comments