Semua buku

Profesional

Aplikasi Tentang Pelatih Masuk Mulai membaca

Computer Science · Glosarium

Apa itu Race condition, critical section, mutual exclusion, lock?

Dikenal juga sebagai: race condition · critical section · mutual exclusion · lock

Definition 31.6 High School Computer Science · Bab 31 — Processes and Scheduling

A race condition is a bug whose effect depends on the order in which processes happen to run. A critical section is a part of a program that uses shared data and must not run in two processes at once. Mutual exclusion is the guarantee that at most one process is in a critical section at any time. A lock provides it: a process acquires the lock before the critical section and releases it after; a process that tries to acquire a lock already held waits until it is released.

Baca dalam konteks →