Signal() Operation of Monitor

Q2. How does the signal () operation associated with monitors differ from the corresponding operation defined for semaphore.

Ans. The signal operations associated with monitors is not persistent in the following sense. If a signal is performed and if there are no waiting threads (process), than the signal is simply ignored and the system doesn’t remember the fact that the signal took place. If a subsequent wait operation is performed than the corresponding thread simply blocks, in semaphore every signal results in a corresponding increment of the semaphore value run if there are no waiting threads, a future wait operation would perform because of the increment.

Leave a Reply

Your email address will not be published. Required fields are marked *

93 Views
%d bloggers like this: