全部书籍

专业

应用 关于 Coach 登录 开始阅读

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

Computer Science · 术语表

什么是 Data race?

Definition 15.5 University Computer Science — Year 2 · 第 15 章 — Threads and Synchronisation

Two accesses to the same memory location form a data race when they come from different threads, at least one is a write, at least one is not atomic, and nothing orders one before the other. In C and C++ a program with a data race has undefined behaviour.

在原文中阅读 →