209 views

1 Answer

0 0 votes
Initial Value$: 10$

After $8 P(S)$ (Wait/Decrement): $10-8=2$

After $3 V(S)$ (Signal/Increment): $2+3=5$

After $1 P(S)$ (Wait/Decrement): $5-1=4$
Answer:
Position:
Show:

Related questions

5 5 votes
1 1 answer
290
290 views
GO Classes asked Feb 21
290 views
Consider a disk with a sector size of $512$ bytes, $2000$ tracks per surface, $50$ sectors per track, and $5$ double-sided platters. A file of size $1 \mathrm{MB}(1 \math...
5 5 votes
2 2 answers
242
242 views
GO Classes asked Feb 21
242 views
A system uses the LRU (Least Recently Used) page replacement algorithm with $3$ empty frames. The page reference string is: $1,2,1,3,7,4,1,2,1$.How many page faults will ...
7 7 votes
3 3 answers
279
279 views
GO Classes asked Feb 21
279 views
Consider three processes $P_1, P_2$, and $P_3$ arriving at time $t=0$ with burst times $10,5 ,$ and $8$ respectively. The scheduler uses Preemptive Shortest Remaining Tim...
3 3 votes
2 2 answers
228
228 views
GO Classes asked Feb 21
228 views
In a system with $5$ processes and $12$ identical resources, each process requires a maximum of $3$ resources to complete its execution.What is the minimum number of reso...