To overcome difficulties in Readers-Writers problem, which of the following statement/s is/are true?
(i) Writers are given exclusive access to shared objects.
(ii) Readers are given exclusive access to shared objects.
(iii) Both Readers and Writers are given exclusive access to shared objects.
Pick an option to check yourself, or open the answer below.
Show answer & explanation
Correct answer: A. (i) only
Explanation
Writers need exclusive access; readers can share the object concurrently.
More System Software and Operating System questions
- Suppose a system has 12 instances of some resource with n processes competing for that resource. Each process may require 4 instances of th…
- Dirty bit is used to show the
- Suppose for a process P, reference to pages in order are (1,2,4,5,2,1,2,4). Assume that main memory can accomodate 3 pages and the main mem…
- Consider the following processes with CPU burst times in milliseconds (table below). The processes are scheduled with Round-Robin schedulin…
- Suppose P, Q, and R are cooperating processes satisfying Mutual Exclusion conditions. Then, if Q the process is executing in its critical s…
- A process residing in Main Memory and Ready and Waiting for execution is kept on?