Recent questions tagged process-synchronization

0 0 votes
0 0 answers
357
357 views
Write a monitor to solve the consumer-producer problem. Thebasic program structure is shown as follows.monitor ProducerConsumer {int in, out, count;Item buffer[BUFFER_SIZ...
3 3 votes
4 4 answers
1.5k
1.5k views
Consider a uniprocessor system with n processes in the ready queue. Round robin scheduling with time quantum x is used for process scheduling. Assume each process require...
28 28 votes
5 5 answers
17.2k
17.2k views
​​​​​Consider a multi-threaded program with two threads $\mathrm{T} 1$ and $\mathrm{T} 2$. The threads share two semaphores: $s1$ (initialized to $1$) and $s2$ (initializ...
3 3 votes
1 1 answer
1.3k
1.3k views
Suppose that an operating system provides two functions, block() which puts the calling process on the blocked queue, and wakeup(P) which moves process P to the ready que...
0 0 votes
1 answers 1 answer
1.1k
1.1k views
Can a counting semaphore acquire a negative value?S = 2;15 P operations done, should the semaphore be 0 or -13
0 0 votes
0 0 answers
313
313 views
What is the meaning of Sychronization of Bits? It is a feature of Physical Layer .
1 1 vote
1 1 answer
1.2k
1.2k views
Consider two processes P1, P2 that access shared binary semaphore variables – S1, S2, S3. Given below is the concurrent execution of these process –here deadlock is poss...
0 0 votes
1 1 answer
865
865 views
How to approach synchronization (specifically semaphore) question, there size are really intimidating and i’m unable to decode the code written? What to do??