Todos os livros

Profissional

Apps Sobre Coach Entrar Começar a ler

Computer Science · Glossário

O que é Semaphore?

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

Ler no capítulo →