hi rupa, semaphore value can't be negative. the value will be 8(bcose the initial value is 10, afte 6P operations value will be 4, after 4v operations its value will be 8) I don't know how you got -2. with regards, kiran On Mon, 6 Jan 2003, Rupa wrote: > Hello, I have a small question. Consider a counting semaphore having > value initially set to 10. If there are 6P wait operations and 4V > signal operations...then what is the current value of semaphore?. I > got it has -2 is it right? Can Any one help me in this regard. > > Regards, > Rupa -- A 105, Hall-IV IIT Kanpur, Pin- 208016, Phone # Dept. (0512) 597653, Hostel (0512) 597114, 597314 -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/