737 views
0 0 votes
The number of binary semaphores required to implement readers-writers code in busy waiting mode is -------------

 

answer given as 1.

why 1 and why not 2?

Please log in or register to answer this question.

Position:
Show:

Related questions

2 2 votes
2 2 answers
155
155 views
GO Classes asked Jul 29
155 views
Two semaphores are initialized as:$S = 1$$T = 0$Two processes execute repeatedly:Process P$\texttt{wait(S);}$$\texttt{print("A");}$$\texttt{signal(T);}$Process Q$\texttt{...
2 2 votes
1 answers 1 answer
860
860 views
subhashchaganti asked Sep 21, 2022
860 views
Say there is a Binary semaphore R, initialized to 0. Say process X and Y are working on R.At T1 :- X has performed P(R); X gets blocked and gets added in Process Queue.At...