Ask a Question

what is difference between semaphore & monitor?


Arpan

on 2010-09-29 09:30:00  

semaphore - a synchronization tool accessed by only 2 atomic methods wait and signal. monitor-Disadvantage of semaphore is it produce timing errors.Thus concept of monitor came.monitor is ADT with programmers defined variables and methods that provide synchronization. semaphore is variable on the other hand monitor is composite type.