If semaphore variable is 8 after 6 wait operations and 3
signal operations.what is semaphore

Answers were Sorted based on User's Feedback



If semaphore variable is 8 after 6 wait operations and 3 signal operations.what is semaphore..

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

If semaphore variable is 8 after 6 wait operations and 3 signal operations.what is semaphore..

Answer / vinay

Deepika is right !! sorry

Is This Answer Correct ?    2 Yes 0 No

If semaphore variable is 8 after 6 wait operations and 3 signal operations.what is semaphore..

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

Post New Answer

More Operating Systems AllOther Interview Questions

What is the best free operating system?

0 Answers  


What is a Safe State and what is its use in deadlock avoidance?

0 Answers   BirlaSoft,


iam free downloading the KK Dictionery to my system but that is not installed yet. can anybody tell be why this happen and what the system have to install the software.

0 Answers  


Is the higher the ghz the better?

0 Answers  


How do you kill a computer with command prompt?

0 Answers  






I have nortan antivirus but some of the virus it can't delete. how will i remove that virus without formating the system ?please help .

3 Answers   HCL,


How can I reformat my laptop?

0 Answers  


Is the g in gnu silent?

0 Answers  


When I startup my computer the screen is black?

0 Answers  


What operating systems provide threads?

5 Answers  


How to Compare Windows OS with OOPs concepts.....??

3 Answers   TCS,


Which intel core is best?

0 Answers  


Categories