---
title: "#memory-barrier articles | Hashnode"
description: "Explore 2 articles tagged #memory-barrier on Hashnode. Tutorials, guides, and how-tos from the community."
url: "https://hashnode.com/tag/memory-barrier"
---

Tag

# #memory-barrier

2 posts · 0 followers

[Sachin Tolay](https://hashnode.com/@tolaysachin) · [Aug 5, 2025](https://hashnode.com/posts/instruction-reordering-your-code-doesnt-always-run-in-the-order-you-wrote-it/68923331d9d47da9240db276)

### [Instruction Reordering: Your Code Doesn’t Always Run in the Order You Wrote It](https://nihcas.hashnode.dev/instruction-reordering-your-code-doesnt-always-run-in-the-order-you-wrote-it?utm_source=hashnode&utm_medium=feed)

When writing code, you naturally expect instructions to run one after the other in the exact order they appear. For example: x=1; y=2; You’d expect x = 1 to complete before y = 2 starts. But in reality, modern CPUs and compilers don’t always execute...

5 min read · [nihcas.hashnode.dev](https://nihcas.hashnode.dev/instruction-reordering-your-code-doesnt-always-run-in-the-order-you-wrote-it?utm_source=hashnode&utm_medium=feed)

[Jyotiprakash Mishra](https://hashnode.com/@jpmishra) · [Oct 7, 2024](https://hashnode.com/posts/a-primer-on-cache-coherence-protocols/6703e70f0bb9d75b2fcb7d35)

### [A Primer on Cache Coherence Protocols](https://blog.jyotiprakash.org/a-primer-on-cache-coherence-protocols?utm_source=hashnode&utm_medium=feed)

In modern multi-core processors, multiple cores operate in parallel, each with its own cache to store frequently accessed data. These caches are designed to reduce the time it takes for a processor to retrieve data from memory, speeding up overall pe...

26 min read · [blog.jyotiprakash.org](https://blog.jyotiprakash.org/a-primer-on-cache-coherence-protocols?utm_source=hashnode&utm_medium=feed)
