Monitors vs Semaphores

Beschreibung

The difference between monitors and semaphores
Ahmad Abdelwahed
Notiz von Ahmad Abdelwahed, aktualisiert more than 1 year ago
Ahmad Abdelwahed
Erstellt von Ahmad Abdelwahed vor mehr als 9 Jahre
11
0

Zusammenfassung der Ressource

Seite 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.

Zusammenfassung anzeigen Zusammenfassung ausblenden

ähnlicher Inhalt

Components of An Operating System - Jason Madappattu
Jason EM
OS1: Operating system basics
MpoMp
OS9: Processes
MpoMp
OS11: Interprocess communication
MpoMp
Operating Systems
bubblesthelabrad
OS10: Threads
MpoMp
OS Final
Hello World
OS2: Operating systems' history
MpoMp
OS3: Hardware
MpoMp
OS5: Operating system concepts
MpoMp
OS4: Operating system types
MpoMp