Lancern's Treasure Chest
18:55 · Apr 4, 2021 · Sun
https://zhuanlan.zhihu.com/p/24146167
知乎专栏
浅论Lock 与X86 Cache 一致性
感谢James Zhang 师兄多年前对我的鞭策, 只是这篇文章写的晚了些, 十二年已然过去.书接上文重温一下 CAS 操作的伪码 bool compare_and_swap (int *accum, int *dest, int newval) { if ( *accum == *dest ) { *d…
Home
Powered by
BroadcastChannel
&
Sepia