If semaphore variable is 8 after 6 wait operations and 3
signal operations.what is semaphore
Answers were Sorted based on User's Feedback
Answer / deepika
let us assume semaphore value to be x before these operations.
Then 6 wait operations reduce its value by 6. So
new value of semaphore = x-6
3 signal operation increases the value by 3. So
new value is now = x-6+3
= x-3
But new value is 8. Thus
x-3=8
x=11
Hence our answer and semaphore value is 11.
| Is This Answer Correct ? | 8 Yes | 2 No |
Answer / vinay
assumin it is counting semphore 6 wait operation causes semaphore value to reduce to 8-6=2 ,
then 3 signal oper make it 2+3=5
ans=5
| Is This Answer Correct ? | 4 Yes | 10 No |
How do I change my local disk?
i want information about real time operating systems because i have an interview tomoorow in valeo company.
How many bytes we can send to apple push notification server in iOS operating system?
How much ram do I need for streaming?
What is the difference between wget and curl?
How do I free up disk space?
describe the situation in which priority inversion can occur
Is kernel a os?
Give some examples of use of thread in a single user multiprocessing system
What is the difference between concurrency and parallelism?
What should I consider when buying a laptop?
What is the difference between multitasking and multiprogramming?