967 views

1 Answer

0 votes
0 votes

A binary semphore which allows only one process into critical section can take a value 0 or 1 at any point of time. The question ask which value it is intialized to which is obviously one.

Related questions

1 votes
1 votes
1 answer
1
Rahul_Rathod_ asked Dec 12, 2018
1,585 views
a) s1-wait(p) , s2-wait(q) , s3-wait(q) , s4-wait(p)b) s1-wait(p) , s2-wait(q) , s3-wait(p) , s4-wait(q)c) s1-wait(q) , s2-wait(p) , s3-wait(p) , s4-wait(q)d) none of...
0 votes
0 votes
0 answers
2
1 votes
1 votes
0 answers
4
srestha asked Oct 4, 2018
1,110 views
Will it causing deadlock? How do we fixed it?P1: P2: Wait(S); Wait(Q); Wait(Q); Wait(S); ........ ............. Signal(S); Signal(Q); Signal(Q); Signal(S);