全部书籍

专业

应用 关于 Coach 登录 开始阅读

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

Quantitative Finance · 术语表

什么是 Hazard pointer, epoch-based reclamation?

又称: hazard pointer · epoch-based reclamation

Definition 11.5 Low-Latency Software · 第 11 章 — Lock-Free Programming

In a lock-free structure whose nodes are freed, a node removed by one thread may still be read by another that loaded its address before the removal. A hazard pointer is a per-thread published pointer to a node the thread is about to read; a node is freed only when no hazard pointer points to it (Michael, 2004). In epoch-based reclamation threads announce entering and leaving a global epoch; a node removed in epoch ee is freed once every thread has left ee (Fraser, 2004).

在原文中阅读 →