conc.quest

Concurrent Quest — where parallel threads converge

Concurrency

Multiple threads of execution, running simultaneously, sharing resources, racing toward completion. The quest is to orchestrate chaos into harmony.

Thread 1
Thread 2
Thread 3

Patterns

Mutex

One at a time. The lock that prevents chaos.

Semaphore

Controlled admission. N threads may pass.

Channel

Message passing. Communication without shared state.

Barrier

Wait for all. Synchronize at the checkpoint.

The Race Condition

When two threads reach for the same resource, who wins? The race condition is the dragon of concurrent programming -- invisible until it strikes.

RACE DETECTED