Alle boeken

Professioneel

Apps Over Coach Inloggen Begin met lezen

Computer Science · Begrippenlijst

Wat is Semaphore?

Definition 15.13 University Computer Science — Year 2 · Hoofdstuk 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.

Lees in het hoofdstuk →