(a) Define Semaphores. How can it be used as a general synchronizatio…

Previous year question for Operating Systems.

Question

(a) Define Semaphores. How can it be used as a general synchronization tool? What advantage does a semaphore have as compared to a hardware test and set instruction?

(b) Define critical section problem and its solution using semaphore. Use this approach to solve producer consumer problem. (10, 10)

Related pages

More PYQs on Semaphores

Open on CachedInfo