A case study

Junction Street

Mile 1 · A Familiar Problem

You've seen this before

Two cars meet on a narrow bridge, built for one car at a time. Each waits for the other to reverse first. Neither does — both just sit there, engines idling.

Two roommates share one bathroom and one hair dryer. Each is waiting on the other to finish. Both reasonable. Both stuck.

Notice the shape: each one is waiting on exactly one other thing to move first. Nobody's wrong — everyone's just stuck.

Next stop, you'll watch this exact shape play out at a street crossing.

Mile 2 · Before You Start

How this stop works

Four highways meet at one crossing. No lights — just one rule everyone already agreed on: each driver waits for one specific driver to go first.

Here's who each driver is waiting on:

Aarav
waits for → Rhea
Dev
waits for → Aarav
Meera
waits for → Dev
Rhea
waits for → Meera

Your task: press Start, then try Signal on any driver. If they get stuck, an option will appear to wave one through, out of turn.

Mile 3 · The Junction

Watch them arrive

Press Start and let all four drivers pull up to the crossing at once. Then try to get them moving.

Gridlock tension0%
1 car max
A
M
D
R
TRAFFIC LOG0 signals sent

// waiting to begin...

Nothing you've tried actually breaks the loop — every driver is still only waiting on one specific other driver. What if one driver went out of turn, even though it isn't technically their turn?
✓ Junction clear — all four drivers made it through. Notice what it actually took.
Mile 4 · Debrief

What just happened?

Before you keep going, think back on the junction. Talk these through — no right answer to click.

Question 1
After all four drivers have arrived, why can't any of them move even though the crossing itself is not physically blocked?
Question 2
Each driver is waiting for someone else to act first. What happens when everyone is waiting for someone who is also waiting?
Question 3
If you could allow only one driver to move out of turn, which driver would you choose, and why would that be enough to get the others moving?
Question 4
Imagine the same situation with 10 drivers instead of 4. What would make it harder to notice why nobody can move?
Question 5
What pattern do you notice in the way the drivers are waiting for one another, and why does breaking one part of that pattern allow the whole situation to proceed?
Mile 5 · The Concept

The formal picture

What you explored has a name: deadlock — a set of things stuck forever, each waiting on the next in a closed loop.

Mutual Exclusion
one holder at a time
Hold & Wait
keep what you have, ask for more
No Preemption
nobody can force a release
Circular Wait
the chain loops back
Deadlock ⇔ Mutual Exclusion ∧ Hold-and-Wait ∧ No Preemption ∧ Circular Wait
With deadlock — cycle closed, nobody moves
Without deadlock — one link broken, everyone moves
Mile 6 · Checkpoint

Spot the pattern elsewhere

Same shape, different scenery. Talk through each one.

1
The Parking Lot
Four cars enter a narrow parking area from four directions. Each car is blocking the space needed by the next car, so none can move forward or backward. What pattern would you look for to determine whether the situation is a deadlock?
2
Shared Chargers
Three students are working on their laptops. Each student has one charger adapter, but each needs a different adapter currently held by another student to finish their work. How could they arrange the exchange so that everyone eventually gets what they need?
3
Spot the Misconception
A student says, "Whenever several people are waiting for something, there is a deadlock." Consider a restaurant where five customers are waiting for one table. Why is this not necessarily a deadlock?
4
A Smaller Group
Three friends each have one key, and each needs the key held by the person on their right to open a locker. Draw or describe the waiting relationships. What is the smallest change needed to allow all three friends to eventually open their lockers?
5
Real-Life Design
Imagine a hotel where guests can reserve multiple shared facilities — such as a meeting room, projector, and conference phone — and each facility can be held by only one group at a time. What reservation rule could the hotel introduce to reduce the chance that groups end up waiting for one another indefinitely?

That closed loop of waiting is the whole story here — same shape, different costumes, every time.