Recent questions tagged semaphore

1 votes
1 answer
61
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
1 answer
62
In a system, counting semaphore was initialized to $10$, then $6P$(wait) operations and $4V$ (signal) operations were completed on this semaphore. So _____ is the final v...
0 votes
1 answer
66
0 votes
1 answer
69
How to decide in which question process will run completely and where preemption needs to be taken while solving semaphore questions? Is there any predefined method?
0 votes
1 answer
70
after execution of 15p and 18 v operations semaphore value is same as execution of A. 3P C.12P&15VB.3V ...
1 votes
0 answers
71
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);
0 votes
1 answer
76
0 votes
1 answer
77
0 votes
0 answers
78
0 votes
0 answers
80
Here A is the Option i get it.But i cant understand how Counting Semaphores can be implemented using Binary Semaphores and Machine instructions. Some light over here plea...
1 votes
2 answers
81
0 votes
3 answers
83
if s is a binary semaphore and the initial value of s is 1 then can 'signal' be performed on s ? what will happen if signal(s) is performed?
2 votes
1 answer
85
0 votes
2 answers
87
1 votes
0 answers
88
(i) What is Load/Store?(ii) Explain fetch-and-set.is there any relation between these two or any basis of comparision?