Semua buku

Profesional

Aplikasi Tentang Pelatih Masuk Mulai membaca

Computer Science · Glosarium

Apa itu Deadlock?

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

A deadlock is a state in which each process of a group waits for a resource held by another process of the group, so that none of them can ever go on.

The resource-allocation graph of the deadlock. Processes are circles, locks squares; an arrow from a lock to a process means “held by”, from a process to a lock “waits for”. The four arrows form a cycle. Leaving out the locks gives the wait-for graph of the output: P waits for Q, Q waits for P.
The resource-allocation graph of the deadlock. Processes are circles, locks squares; an arrow from a lock to a process means “held by”, from a process to a lock “waits for”. The four arrows form a cycle. Leaving out the locks gives the wait-for graph of the output: P waits for Q, Q waits for P.
Baca dalam konteks →