694 views

2 Answers

2 votes
2 votes
B option (18)

initially there is 7 processor  and 20p means 20 down or wait operation and v means up or signal operation,so

equation will be

7-20+x=5

here =5  shows that the final value, after calculation will be 5 as( given in question) so

-13+x=5

x= 18
0 votes
0 votes

Answer: B

20 P operations i.e. wait or down.

x V operations i.e. signal or up

Initial value + no. of up oeration – no. of down operation = Final value

7 + x – 20 = 5

x – 13 = 5

x = 18

Related questions

0 votes
0 votes
1 answer
1
N3314nch41 asked Sep 10, 2023
341 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??