关于内存,每个程序员都应该知道什么? [英] What Every Programmer Should Know About Memory?
问题描述
我想知道 Ulrich Drepper 2007 年的每个程序员应该了解的内存中有多少仍然有效的.我也找不到比 1.0 更新的版本或勘误表.
I am wondering how much of Ulrich Drepper's What Every Programmer Should Know About Memory from 2007 is still valid. Also I could not find a newer version than 1.0 or an errata.
(在 Ulrich Drepper 自己的网站上也有 PDF 格式:https://www.akkadia.org/drepper/cpumemory.pdf)
(Also in PDF form on Ulrich Drepper's own site: https://www.akkadia.org/drepper/cpumemory.pdf)
推荐答案
据我所知,Drepper 的内容描述了有关内存的基本概念:CPU 缓存如何工作、物理和虚拟内存是什么以及 Linux 内核如何处理该动物园.在某些示例中可能存在过时的 API 引用,但这并不重要;这不会影响基本概念的相关性.
As far as I remember Drepper's content describes fundamental concepts about memory: how CPU cache works, what are physical and virtual memory and how Linux kernel deals that zoo. Probably there are outdated API references in some examples, but it doesn't matter; that won't affect the relevance of the fundamental concepts.
因此,任何描述基本知识的书籍或文章都不能称为过时.每个程序员都应该了解的内存知识"绝对值得一读,但是,我不认为它适合每个程序员".更适合系统/嵌入式/内核人员.
So, any book or article that describes something fundamental cannot be called outdated. "What every programmer should know about memory" is definitely worth to read, but, well, I don't think it's for "every programmer". It's more suitable for system/embedded/kernel guys.
这篇关于关于内存,每个程序员都应该知道什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!