TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Anatomy of a Program in Memory (2009)

110 点作者 chaitanyav大约 7 年前

6 条评论

okket大约 7 年前
Previous discussions: <a href="https:&#x2F;&#x2F;hn.algolia.com&#x2F;?query=Anatomy%20of%20a%20Program%20in%20Memory&amp;sort=byDate&amp;dateRange=all&amp;type=story&amp;storyText=false&amp;prefix&amp;page=0" rel="nofollow">https:&#x2F;&#x2F;hn.algolia.com&#x2F;?query=Anatomy%20of%20a%20Program%20i...</a><p>(or click &quot;past&quot; under the title, also helpful to check when you submit a link)
finchisko大约 7 年前
After reading many articles about virtual memory and how kernel space is mapped into every process I don&#x27;t understand why it is necessary. Why can&#x27;t process only have mapped it&#x27;s user mode space? Also it only seems to be case of unixes and windows. Not sure how exactly it&#x27;s done in OSX but &quot;Mac OS X does not map the kernel into each user address space, and therefore each user&#x2F;kernel transition (in either direction) requires an address space switch.&quot; <a href="https:&#x2F;&#x2F;flylib.com&#x2F;books&#x2F;en&#x2F;3.126.1.91&#x2F;1&#x2F;" rel="nofollow">https:&#x2F;&#x2F;flylib.com&#x2F;books&#x2F;en&#x2F;3.126.1.91&#x2F;1&#x2F;</a>
评论 #16961418 未加载
bogomipz大约 7 年前
The author states:<p>&gt;It is also possible to create an anonymous memory mapping that does not correspond to any files, being used instead for program data.&quot;<p>This isn&#x27;t strictly true though is it? It was my understanding even mmap() MAP_ANONYMOUS used a file interface, and that the way the kernel creates anonymous maps is by creating an instance of &#x2F;dev&#x2F;zero in tmpfs. Although I believe the file descriptor might be ignored however.
评论 #16960686 未加载
Myrmornis大约 7 年前
if the process depicted in the diagram were to start a second thread, where would that second thead’s stack go in the diagram? The two threads would share the same heap.
评论 #16960759 未加载
dsign大约 7 年前
&gt;&gt; In Linux, kernel space is constantly present and maps the same physical memory in all processes.<p>That&#x27;s right there together with the city states of Greece and other ancient memories. Meltdown and Specter happened.
评论 #16960608 未加载
评论 #16960299 未加载
newscracker大约 7 年前
The title needs 2009 in it, since this article is from that year.
评论 #16957399 未加载
评论 #16959844 未加载
评论 #16959619 未加载