Monitors vs Semaphores

Descripción

The difference between monitors and semaphores
Ahmad Abdelwahed
Apunte por Ahmad Abdelwahed, actualizado hace más de 1 año
Ahmad Abdelwahed
Creado por Ahmad Abdelwahed hace más de 9 años
11
0

Resumen del Recurso

Página 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.

Mostrar resumen completo Ocultar resumen completo

Similar

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
OS4: Operating system types
MpoMp
OS5: Operating system concepts
MpoMp