Semua buku

Profesional

Aplikasi Tentang Pelatih Masuk Mulai membaca

Computer Science · Glosarium

Apa itu Deadlock, livelock, Coffman conditions?

Dikenal juga sebagai: deadlock · livelock · Coffman conditions

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

A set of threads is in deadlock when each of them waits for something that only another thread of the set can provide, so that none of them will ever move again. In a livelock the threads keep taking steps, but none of the steps makes progress. The Coffman conditions for a deadlock over resources are: mutual exclusion (a resource is held by one thread at a time), hold and wait (a thread holds resources while it waits for others), no preemption (a resource is released only by its holder), and circular wait (a cycle of threads, each waiting for a resource the next one holds).

Baca dalam konteks →