全部书籍

专业

应用 关于 Coach 登录 开始阅读

书籍暂未推出简体中文版——当前显示英文版。

Computer Science · 术语表

什么是 Memory model, sequential consistency?

又称: memory model · sequential consistency

Definition 13.9 University Computer Science — Year 3 · 第 13 章 — Concurrency: Deadlock, Monitors and Lock-Free Structures

A memory model specifies which values each read of a shared location may return in a concurrent program. Under sequential consistency every execution behaves as some interleaving of the threads’ operations, each thread’s in its program order, every read returning the latest write before it in that interleaving.

Store buffering. Each write waits in its core’s buffer while the read that follows it goes to memory, where the other write has not arrived: both reads return 0.
Store buffering. Each write waits in its core’s buffer while the read that follows it goes to memory, where the other write has not arrived: both reads return 0.
在原文中阅读 →