176 views

2 Answers

0 0 votes
Ans is writer starvation
bcoz if reader continues arriving and read ,writer dont have chance of write that data .
0 0 votes

In a reader-preference solution, readers are given priority over writers.

If a writer is waiting but new readers keep arriving, those readers may continue entering before the writer gets a chance.

Thus, the writer may be forced to wait indefinitely.

This situation is called \textbf{writer starvation}.

Therefore,

$\boxed{\text{Answer: B}}$

Answer:
Position:
Show:

Related questions

2 2 votes
2 2 answers
214
214 views
GO Classes asked Aug 3
214 views
Consider a modified reader algorithm:$\texttt{wait(mutex);}$$\texttt{readcount++;}$$\texttt{signal(mutex);}$$\texttt{if(readcount == 1)}$$\texttt{wait(wrt);}$Two readers ...
3 3 votes
2 2 answers
219
219 views
GO Classes asked Aug 3
219 views
In the standard reader-preference solution:$\texttt{mutex}$ protects $\texttt{readcount}$. $\texttt{wrt}$ controls access to the shared data.Which of the following statem...
3 3 votes
1 1 answer
218
218 views
GO Classes asked Aug 3
218 views
Which of the following statements are correct?In the standard reader-preference solution, the first reader executes $\texttt{wait(wrt)}$. In the standard reader-preferenc...
2 2 votes
2 2 answers
196
196 views
GO Classes asked Aug 3
196 views
Five philosophers sit around a circular table.There is one chopstick between each pair of adjacent philosophers, and a philosopher requires both adjacent chopsticks to ea...