Semua buku

Profesional

Aplikasi Tentang Pelatih Masuk Mulai membaca

Computer Science · Glosarium

Apa itu Semaphore?

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

Baca dalam konteks →