Tous les livres

Professionnel

Applis À propos Coach Connexion Commencer la lecture

Computer Science · Glossaire

Qu'est-ce que « Semaphore » ?

Definition 15.13 University Computer Science — Year 2 · Chapitre 15 — Threads and Synchronisation

A semaphore is a non-negative integer with two atomic operations: PP (sem_wait) waits until the value is positive and decreases it by 1; VV (sem_post) increases it by 1, waking a waiter if there is one. A semaphore that starts at NN counts NN available resources.

Lire dans le chapitre →