Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

Explain the term kernel.

1 Answers   Verifone,


How do you clear cache on a laptop?

0 Answers  


How do I change my local disk?

0 Answers  


what is live lock,race condition,starvation?how it work and explain brifly?

3 Answers  


Is google an operating system?

0 Answers  


Why is android better than ios?

0 Answers  


Is microsoft coming out with a new operating system?

0 Answers  


How many bytes we can send to apple push notification server in iOS operating system?

0 Answers   B-Ways TecnoSoft,


Some operating system have a tree structured file system but limits the depth of the tree to some small number of levels. what effect does this limit have on users? How does this simplify file system (if it does)?

1 Answers  


i want information about real time operating systems because i have an interview tomoorow in valeo company.

1 Answers  


What are different errors encountered while compiling?

0 Answers   TCS,


How do I run wget?

0 Answers  


Categories