---
title: "Discussion on \"Inside Interlocked: Memory Ordering, Fences, and Cache Lines\" | Hashnode"
description: "Discussion on \"Inside Interlocked: Memory Ordering, Fences, and Cache Lines\". Follow a shared counter across threads and CPU cores, from atomic updates and memory ordering to contention and false sharing."
url: "https://hashnode.com/posts/inside-interlocked-and-memory-ordering/6ae5763fc796f848ef587541"
---

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

Discussion

# [Inside Interlocked: Memory Ordering, Fences, and Cache Lines](https://asylkhan-azat.hashnode.dev/inside-interlocked-and-memory-ordering?utm_source=hashnode&utm_medium=feed)

Follow a shared counter across threads and CPU cores, from atomic updates and memory ordering to contention and false sharing.

Oct 31 · 38 min read · asylkhan-azat.hashnode.dev  
Read the article

-   [#threading](https://hashnode.com/tag/threading)
-   [#dotnet](https://hashnode.com/tag/dotnet)
-   [#performance](https://hashnode.com/tag/performance)
-   [#csharp](https://hashnode.com/tag/csharp)
-   [#parallelism](https://hashnode.com/tag/parallelism)

## Written by

[Azat Asylkhan](https://hashnode.com/@asylkhan-azat)

@asylkhan-azat · Almaty, Kazakhstan

  
[View profile](https://hashnode.com/@asylkhan-azat)

Notes from things I'm building and breaking

Hi, I'm Azat. I write code, mostly in C#, and I tend to go down rabbit holes. This blog is where I write down what comes out of them: things I've built, problems I've solved (or haven't yet), useful snippets, and ideas I want to think through properly. Some posts are polished, some are closer to notes. Either way, if something here saves you an hour of searching, it was worth posting.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
