If semaphore variable is 8 after 6 wait operations and 3
signal operations.what is semaphore
Answer Posted / 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 |
Post New Answer View All Answers
What is the best free operating system?
Can yum install rpm?
What is difference between post and put method?
What do you mean by Run time Errors?
Where can I get a free operating system?
what is ms configure?
What is the best os for laptop?
What do you know about the latest android version Lollipop?
What is the latest android operating system?
Do cores matter for gaming?
Is more ram better for streaming?
How do I run wget?
What is the difference between kernel and operating system?
How do I compare plugins in notepad ++?
windows 3.1 is