baiwfg2 / awesome-readings

记录看各种文章、论文的心得
2 stars 0 forks source link

memory reordering, volatile, atomic,fence, barrier, lock,coherence,consistency #48

Open baiwfg2 opened 2 years ago

baiwfg2 commented 2 years ago

这些概念在low-level 编程中是很重要的,也有些难度,不太好理解,不同的处理器还有不同的规则。 这里总结一些权威资料

[1] intel 手册 [2] The art of multiprocessor programming ( #15 ) [3] perfbook [4] A primer on memory consistency and coherence (#49) [5] http://www.rdrop.com/users/paulmck/scalability/paper/ordering.2007.09.19a.pdf , Paul E. Mckenney, 2007 [6] Benign Data Races Considered Harmful https://bartoszmilewski.com/2020/08/11/benign-data-races-considered-harmful/ [7] https://preshing.com/20120930/weak-vs-strong-memory-models/ [8] Distributed Shared Memory and Memory Consistency Models https://people.cs.rutgers.edu/~pxk/rutgers/notes/content/09-dsm.pdf [12] https://github.com/GHScan/TechNotes/blob/master/2017/Memory_Model.md

更宽范围内的就是计算机架构了,经典书籍是 COAD(computer organization and design - The hardware/software interface), CAAQA (Computer Architecture: A Quantitative Approach)