4 ms·
It seems they're all some type of "monitor".
by ygd 16y ago
It seems they're all some type of "monitor".
- deadlockfeet 16y agofrom my CS class last sem I clearly remeber this one: Semaphores and Monitors are different. Monitors are implemented by compiler to make sure that thread dont mess up with the memmory.However Semaphores are implemented by the porgrammers. A semaphore contains a value on which either up or down can be called to indicate its status also it has a queue which contains process which are sleeping and are waiting for the up on the semaphore to be called.