scroll to explore

concurrent.quest

a living computational observatory

Where parallel processes become bioluminescent organisms, synchronizing in waves of coherence across a vast digital petri dish.

What is Concurrency?

thread::A
thread::B
thread::C

Multiple processes interleave their execution, each advancing along its own timeline. They share resources, compete for locks, and occasionally synchronize -- producing emergent patterns more complex than any single thread could generate alone.

active idle blocked synchronized

The Quest

Drag between process nodes to form connections. Create a cycle to trigger a deadlock.

producer()
consumer()
mutex.lock()
channel.send()
scheduler()

Patterns

Mutex

A guardian organism. Only one thread may enter its membrane at a time. Others wait at the boundary, pulsing gently until the lock is released.

Semaphore

A colony of permits. Multiple threads coexist within its bounds, but the population is capped. When the last permit is taken, newcomers queue at the edge.

Channel

A river between worlds. Messages flow in one direction, buffered by the current. The sender and receiver never touch -- they communicate through the stream.

Barrier

A synchronization reef. All threads must arrive before any may proceed. They gather at the threshold, waiting in communion until the last one arrives.

Join the quest

Enter the observatory.