登录/注册
下载豆瓣客户端
豆瓣
6.0
全新发布
×
豆瓣
扫码直接下载
iPhone
·
Android
豆瓣
读书
电影
音乐
同城
小组
阅读
FM
时间
豆品
豆瓣读书
搜索:
购书单
电子图书
2023年度榜单
2023年度报告
《多处理器编程的艺术(原书第2版)》的原文摘录
按热度排序
按页码排序
举个例子,如果你在星期一存入工资,但是由于银行在提款后重排了存款的顺序,导致到下一个星期五才退出资金收据,这将使你感到非常恼火。 (
查看原文
)
ligand
2回复
2赞
2015-02-20 18:26:30
—— 引自第36页
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. (
查看原文
)
ligand
2回复
2赞
2015-02-20 18:26:30
—— 引自第36页
the TASLock performs very poorly, and the TTASLock performance, while substantially better, still falls far short of the ideal. (
查看原文
)
红色有角F叔
2014-05-05 10:26:57
—— 引自章节:Spin Locks and Contention
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 time. (
查看原文
)
红色有角F叔
2014-05-05 10:26:57
—— 引自章节:Spin Locks and Contention
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 likely, there is high conteniton for that lock. the larger the number of unsuccessful tries, the higher the likely contention, and the longer the thread should back off . backing off is common to several locking algorithms. the BackoffLock is easy to implement, and typically performs significantly better than TASLock on many architectures. (
查看原文
)
红色有角F叔
2014-05-05 10:26:57
—— 引自章节:Spin Locks and Contention
>
我来写笔记
>
多处理器编程的艺术(原书第2版)
作者:
[美] 莫里斯·赫利希(Maurice Herlihy), [美] 尼尔·沙维特(Nir Shavit), [美] 维克多·卢昌科(Victor Luchangco), [美]迈克尔·斯皮尔(Michael Spear)
isbn:
7111704320
书名:
多处理器编程的艺术(原书第2版)
页数:
448
译者:
江红
,
余青松
,
余靖
定价:
149.00
出版社:
机械工业出版社
出版年:
2022-6
装帧:
平装