多处理器编程的艺术

Maurice Herlihy, Nir Shavit

出版时间

2009-08-01

ISBN

9787111268055

评分

★★★★★
书籍介绍
这本书最引争议之处,恰是它的价值所在:它不教你怎么写出一段能跑的并发代码,而是逼你理解为什么并发如此困难。读者反复提及的
AI导读
核心看点
  • 系统阐述多处理器编程原理与实践
  • 深入解析锁、无锁及并发同步算法
  • 涵盖缓存一致性与硬件基础知识
读者共识
  • 领域权威著作,理论指导价值极高
  • 翻译水平备受诟病,严重影响阅读体验
  • 难度极大,适合当作索引查阅原文
精彩摘录
  • "举个例子,如果你在星期一存入工资,但是由于银行在提款后重排了存款的顺序,导致到下一个星期五才退出资金收据,这将使你感到非常恼火。"
  • "For example, we might be unhappy if we deposit our paycheck on Monday, but the bank bounces our rent check the following Friday because it reordered our deposit after your withdrawal."
  • "the TASLock performs very poorly, and the TTASLock performance, while substantially better, still falls far short of the ideal."
  • "Now consider the behavior of the TTASLock algorithm while the lock is held by a thread A. The first time thread B reads the lock it takes a cache miss, forcing B to block while the value is loaded into B's cache. As long as A holds the lock, B repeatly reread the value, but hits in the cache every t"
  • "This notion of local spinning, where threads repeatly reread cached values instead of repeatedly using the bus, is an important principle critical to the design of efficeient spin locks. Here is a key observation: if some other thread aquires the lock between hte first and second step, then, most li"
用户评论
曾经一度以为lockfree就是并发,实现了一下LockfreeQueue才发现lockfree只能提高单线程下的性能,scalability未必会好。lock/lockfree & concurrent可以说是正交的两个东西,
这书理论性很强,但是现实来说,这些知识用不上……
书是好书 就是这个神特么翻译😒😒😒
读得很难受,太学究了…
理解起来太费劲,太过于偏重理论,而且翻译也有问题,一个缓冲行填充说的理解半天,看了半天才明白。本来一句话的事,半天没说清楚,看了两个小时,和看天书一样,或许是理论功底不足吧。
译者是翻着翻着就开始放飞自我了吗?第三章开始的内容真的不是机翻吗?还是老老实实看原版好了
晦涩难懂,不说人话,让我对所有标题以art开头的书都产生了心理阴影。
好书,翻译非常烂,不要看中文版
下载
收藏