Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

写时复制(Copy On Write)章节问题 #49

Open
KJohn2q opened this issue Jul 30, 2021 · 0 comments
Open

写时复制(Copy On Write)章节问题 #49

KJohn2q opened this issue Jul 30, 2021 · 0 comments

Comments

@KJohn2q
Copy link

KJohn2q commented Jul 30, 2021

第一段:一般我们运行程序都是Fork一个进程后马上执行Exec加载程序,而Fork的是否实际上用的是父进程的堆栈空间,Linux通过Copy On Write技术极大地减少了Fork的开销。 读起来并不顺,是否该改为 Fork实际上用的是父进程的堆栈空间

第二段:Copy On Write的含义是只有真正写的时候才把数据写到子进程的数据,Fork时只会把页表复制到子进��,这样父子进程都指向同一个物理内存页,只有写子进程的时候才会把内存页的内容重新复制一份。 是否改改为

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant