Semua buku

Profesional

Aplikasi Tentang Pelatih Masuk Mulai membaca

Computer Science · Glosarium

Apa itu Monitor, Hoare semantics, Mesa semantics?

Dikenal juga sebagai: monitor · Hoare semantics · Mesa semantics

Definition 13.8 University Computer Science — Year 3 · Bab 13 — Concurrency: Deadlock, Monitors and Lock-Free Structures

A monitor is a module whose data are reached only through its procedures, which run under one lock, one thread at a time; a thread inside may wait on a condition variable, which releases the lock, until another thread signals it. Under Hoare semantics the signaller hands the monitor at once to the woken thread, which therefore finds the condition true. Under Mesa semantics the woken thread only becomes ready; it runs later, after reacquiring the lock, when another thread may have entered first and made the condition false again.

Baca dalam konteks →