---
title: "Mutual Exclusion"
summary: "Mutual Exclusion: a page of the HPC note."
date: 2026-09-11
author: hpcnotes
kind: note
parent: hpc-parallel-synchronization
order: 1
tags: hpc
draft: false
---

A lock is a memory order. Hold it for the line, not for the function.
