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
Do simultaneous downloads take longer?
What is the fastest computer operating system?
What happens if you turn off computer during update?
Where do I find disk cleanup?
Explain about memory management in operating system.
Which is your favorite editor, shell, programming shell and why?
Why is my computer so slow?
what are latest technologies ? and how will keep yourself up to date ?
What is microsoft spreadsheet compare?
what is multitask win95
What is startup repair on my computer?
what is ms configure?
What is the shortcut key to refresh laptop?
What causes a corrupt operating system?
Is chrome os better than windows 10?