If you’ve ever sat through an operating systems 101 lecture, you’ve probably laughed at how many real-life situations mirror the technical concepts you learn. Deadlock is one of those ideas that pops up everywhere, from group dinner runs to game nights with your closest friends. If you’re looking for a silly, low-stakes inside joke to pull with people who get tech references, this guide will walk you through how to give friends deadlock without ruining any gadgets, snacks, or friendships. You don’t need a CS degree to pull it off, just a little sense of humor and awareness of basic deadlock rules.
What Deadlock Means in Core Computer Science Terms
Most people hear deadlock and think of a frozen app or a computer that won’t respond, and that’s exactly the core of the concept. In operating systems, deadlock happens when two or more processes are each holding a resource the other needs, and neither will release their held resource first, so all processes get stuck indefinitely. There are four required conditions for deadlock to happen, and they translate perfectly to real-life pranks too.
The first condition is mutual exclusion, meaning only one process can use a given resource at a time. The second is hold and wait, where a process holds one resource while waiting for another that’s held by a different process. Third is no preemption, meaning no outside force can take a resource away from a process that’s holding it. Fourth is circular wait, where each process in the chain is waiting for a resource held by the next process in the chain. If all four of these are true, you’ve got a deadlock on your hands.
You’ve definitely lived through a non-tech deadlock before without realizing it. For example, if you’re waiting for your roommate to pass the chips, and they’re waiting for you to pass the soda, and neither of you will move first, that’s a classic deadlock. The prank version of this just leans into that existing dynamic for a quick laugh.
How to Give Friends Deadlock With 3 Low-Effort, No-Damage Pranks
The best part of these pranks is that they take almost no planning, work with items you already have around you, and won’t leave anyone upset if you pull them off right. All of them follow the four deadlock conditions we just covered, so they’re technically accurate too, which makes the joke even funnier for anyone who knows the concept.
- The game night deadlock: This works best for groups of 2 to 4 people playing couch co-op or competitive console games. Grab the last slice of your friend’s favorite snack right as they reach for it, then make sure you’re holding the extra controller they need to join the next round. When they ask for the controller, tell them you’ll hand it over as soon as they let you have the snack. They’ll almost always say they’ll give you the snack as soon as you hand over the controller, and you’re stuck in a perfect deadlock until someone laughs first.
- The remote group project deadlock: If you’re working on a shared document or project with a friend remotely, this is the perfect low-stakes prank. Open the same section of the shared Google Doc or Figma file that they’re trying to edit, and start making small, trivial changes to the text or design. When they message you asking to exit the section so they can work, tell them you’ll leave as soon as they finish the task you’ve been waiting for them to complete. They’ll almost always say they can’t finish that task until they edit the section you’re in, and you’ve got a digital deadlock that will get an eye roll and a laugh through the screen.
- The study session deadlock: This works for friends you’re studying or coworking with in person. Grab their portable phone charger right as they reach for it when their battery hits 10%, then make sure they have the iced coffee or snack you just bought and were about to grab. When they ask for their charger back, tell them you’ll hand it over as soon as they pass your snack. They’ll immediately say they’ll give you the snack when you give them the charger, and you’re in deadlock until someone caves.
None of these pranks take more than a couple of minutes, and you don’t have to do anything permanent to pull them off. Never hold items that are time-sensitive, though — if they’re waiting for an important work call or family text, skip this prank and pick a different time. The point is to be silly, not to cause stress.
If you’re looking for more ideas for how to give friends deadlock, you can adapt these pranks to almost any situation, as long as you hit the four deadlock conditions. You can do it at a coffee shop, a concert, even a family dinner if your relatives are into silly jokes. The only limit is your imagination, as long as you keep it harmless.
Rules to Follow to Keep Your Deadlock Pranks Harmless
Even the silliest pranks can go wrong if you don’t set basic boundaries, and deadlock pranks are no exception. These rules will make sure everyone laughs and no one leaves the interaction annoyed or upset. You can adjust them based on how well you know the friend you’re pranking, but they’re a good baseline for anyone.
First, only pull this prank on people you’re close with, not acquaintances or coworkers you don’t have a casual dynamic with. The joke lands way better when someone knows your sense of humor, and you won’t accidentally come off as rude or unprofessional. If you’re not sure if they’ll find it funny, just ask first before you pull it.
Second, end the prank within two minutes max. It’s funny for the first 60 seconds, but after that it just gets tedious, especially if you’re holding an item they actually need. You don’t have to hold out for a “win” — the joke is the deadlock itself, not who caves first. Always prioritize your friend’s comfort over the joke, and if they seem even slightly annoyed, end it immediately and explain the bit.
Third, explain the reference if they don’t get it. A lot of people haven’t taken an OS class, so they might just think you’re being weird for no reason if you don’t tell them what deadlock is. You don’t have to give a full lecture, just a quick 30 second explanation of the technical concept, and they’ll get the joke instantly.
How to Turn Your Deadlock Prank Into a Quick CS Learning Moment
One of the best parts of these pranks is that they’re a covert way to teach people basic computer science concepts without making it feel like homework. Most people think CS is all boring code and hard math, but showing them how a concept they just lived through applies to how their phone or laptop works makes it way more accessible.
After you end the prank, you can walk through the four deadlock conditions and point out how they showed up in your joke. For the game night prank, mutual exclusion is that only one person can eat the last slice of pizza at a time, hold and wait is that you’re holding the controller while waiting for the pizza, no preemption is that neither of you is going to rip the item out of the other’s hand, and circular wait is that you’re both waiting for each other to give up their item first.
You can even tie it to a real tech problem they’ve probably experienced, like when their music app freezes when they try to download a song and open their camera at the same time. That’s almost always a deadlock between the two apps fighting for the same storage or processing resource. This is one of the easiest ways to explain complex OS concepts to people who don’t work in tech, and it sticks way better than a textbook explanation ever would.
Once you get the hang of spotting the four deadlock conditions in real life, you’ll start seeing opportunities for how to give friends deadlock everywhere, with almost no planning required. A lot of people avoid talking about tech concepts with non-technical friends because they think it’s too boring or confusing, but pranks like this break that barrier. You get a funny moment with your friend, and they walk away knowing a little more about how the devices they use every day work. It’s a win for everyone.
Tech-themed pranks are one of the best low-effort ways to bond with your friends, especially if you all share an interest in computers or programming. Knowing how to give friends deadlock is a silly, low-stakes joke that works for almost any casual hangout, from game nights to study sessions to remote project calls. As long as you keep it light, respect your friend’s boundaries, and explain the reference if they don’t get it, you’ll get a laugh every time, and you might even teach them a little something about operating systems along the way.