concurrent.quest

Where parallel paths converge into discovery

scroll to begin

FORK_JOIN

main()
thread_a
thread_b
thread_c
join()

Processes diverge into independent threads, each carrying a fragment of the quest. They explore, compute, and return.

MUTEX_GARDEN

Critical Section
T1
waiting...
T2
waiting...
T3
waiting...
T4
waiting...

Only one thread may enter the garden at a time. The others drift patiently, bobbing in the warm current, waiting for the lock to release.

ASYNC_DREAMS

pending
fetch(quest)
pending
.then(explore)
pending
.then(discover)
pending
.resolve()

Promises cascade like bubbles rising through warm water. Each resolves in its own time, carrying data forward through the asynchronous current.

RESOLUTION

All threads have joined. All promises resolved. The concurrent quest continues — an infinite loop of exploration, discovery, and synchronization.