GoConqr has a new look! Let us know what you think.

Notes

Monitors vs Semaphores

Ahmad Abdelwahed Operating Systems 0 English 1 page

Content of the notes (1)

Page 1

Monitors are programming-language concept, the compiler must recognize them and arrange for the mutual exclusion somehow or other. Many programming languages do not have monitors.

The same languages do not have semaphores either, but adding semaphores is easy: all you need to do is add two short assembly-code routines to the library to issue the up and down system calls. The compiler do not even have to know that they exist. Of course the operating system have to know about the semaphores, but at least if you have a semaphore-based operating system, you can still write the user programs for it in C or C++ or even assembly.

With monitors, you need language that has them built in.

Information

Description
The difference between monitors and semaphores
Created by
Ahmad Abdelwahed · May 2015
Updated
Feb 19, 2016
Views
31
Rating

Feedback

What is it about?

What do you think of the new look?

How do you like it?