DEV Community

Cover image for Deadlock | Valorant
conjurer
conjurer

Posted on

Deadlock | Valorant

Program | Process

Program = some instructions a computer follows to execute / perform a task. It's stored in the secondary memory (eg. disk) and can have many processes.
Process = an instance of a program, or a file under execution.
(Yes running the .exe after compiling a .cpp)

A program becomes a process when loaded into RAM.

Deadlock

Like when two or more processes in a computer are waiting for each other to make a move, and no one’s budging.

Imagine two processes are holding onto resources the other needs, but neither can proceed without the other letting go first. It’s the ultimate stalemate, and nothing moves forward.
Like 2 programmers waiting for each other's code to merge first.

Deadlock’s Barrier Mesh

If you’ve played Deadlock in Valorant, you know her Barrier Mesh (e) ability throws out a net that creates four interconnected nodes.
Bind site aNow, picture this: each of those four nodes represents a process dependent on each other. The dependence can be seen by the fifth central node.
That’s what happens in a computer science deadlock: multiple processes are trapped, stuck in a loop of dependencies where each one waits for the other to release its hold of the requested resource.

Breaking the Barrier: Resolving the Deadlock

A few options in Valorant: destroy the nodes or wait it out.
Similarly, in programming, breaking a deadlock means forcing one process to release its hold or finding a workaround.
Timeouts, resource ordering, or other techniques can be used to force a process to back down, freeing up the system.

Whether it’s a game or a server, breaking the deadlock takes action and strategy — but once it happens, everything flows smoothly again.

Thanks to the Valo devs for the easter egg!

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Discover a treasure trove of wisdom within this insightful piece, highly respected in the nurturing DEV Community enviroment. Developers, whether novice or expert, are encouraged to participate and add to our shared knowledge basin.

A simple "thank you" can illuminate someone's day. Express your appreciation in the comments section!

On DEV, sharing ideas smoothens our journey and strengthens our community ties. Learn something useful? Offering a quick thanks to the author is deeply appreciated.

Okay