Monitors vs Semaphores

Descrição

The difference between monitors and semaphores
Ahmad Abdelwahed
Notas por Ahmad Abdelwahed, atualizado more than 1 year ago
Ahmad Abdelwahed
Criado por Ahmad Abdelwahed mais de 9 anos atrás
11
0

Resumo de 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.

Semelhante

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