← LessonsCREATOR PATH Β· 10–12🎬

Studio Lock Ordering

LESSON 149
🎯 Today's missions
🎬πŸŽ₯🎀
MOVIE STUDIO

Studio Lock Ordering

The studio owns just one camera, one microphone and one light. Every film crew needs two of them at once. Make sure no crew ever freezes the whole set.

🧠 Before we start

Treehouse LRU Shelf shared a small shelf between requests. Today several crews share a few locked tools: only one crew can hold a tool at a time. If crews each hold a tool the other needs, they wait on each other forever. That freeze is called a deadlock.

πŸ”’ Hold→⏳ Waitβ†’πŸ”„ Circle?β†’πŸ”’ Same order
Challenge 1 of 4Build the routine
1

Build the crew routine

Every crew follows the same plan for the two tools it needs. Tap the four cards in the order a careful crew does them.

THE CREW ROUTINE Β· SAME STEPS EVERY SCENE
1 Β· FIRST
2 Β· SECOND
3 Β· SCENE
4 Β· RETURN

🌟 What you learned

Come back tomorrow for another advanced visual coding adventure! ✨