Skip to content
Free public beta until December 4, 2026: every course is open, no card needed. After that, the first chapter of each course stays free and full access is a one-time $39 ($19 for up to 100 founding members chosen for helpful feedback). Your progress is kept. How the beta works

deadlock

Two programs or threads each waiting for the other, forever.

A deadlock is a cycle of waits in which no party can proceed, such as a parent blocked writing a child's full stdin while the child is blocked writing its full, unread stdout.

Examples

  • A parent that writes a large input to a child's stdin before reading its stdout can hang: the child waits on a full stdout pipe, the parent on a full stdin pipe.

Read the full section →