---
title: "Discussion on \"What Is a Mutex? The Lock That Keeps Two Programs From Fighting\" | Hashnode"
description: "Discussion on \"What Is a Mutex? The Lock That Keeps Two Programs From Fighting\". To put it simply, a mutex is a lock that lets only one thread touch a piece of shared data at a time. Picture a bug that passes every test, runs fine for weeks, and then corrupts a customer's order to"
url: "https://hashnode.com/posts/what-is-a-mutex-the-lock-that-keeps-two-programs-from-fighting/6affa62e7de8b244416b8dcb"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [What Is a Mutex? The Lock That Keeps Two Programs From Fighting](https://itsmeminsithu.hashnode.dev/what-is-a-mutex-the-lock-that-keeps-two-programs-from-fighting?utm_source=hashnode&utm_medium=feed)

To put it simply, a mutex is a lock that lets only one thread touch a piece of shared data at a time. Picture a bug that passes every test, runs fine for weeks, and then corrupts a customer's order to

1h ago · 6 min read · itsmeminsithu.hashnode.dev  
Read the article

-   [#concurrency](https://hashnode.com/tag/concurrency)
-   [#multithreading](https://hashnode.com/tag/multithreading)
-   [#mutex](https://hashnode.com/tag/mutex)
-   [#programming-concepts](https://hashnode.com/tag/programming-concepts)
-   [#beginners](https://hashnode.com/tag/beginners)

## Written by

[Min SiThu](https://hashnode.com/@itsmeminsithu)

@itsmeminsithu · Singapore

  
[View profile](https://hashnode.com/@itsmeminsithu)

Software Engineer

Nubbad Developer. | Now I accidentally create problems.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
