复制写概念 [英] Copy on Write Concept

查看:90
本文介绍了复制写概念的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
我想了解有关写时复制"和分页"概念的信息.请不要建议Google.我已经尝试过了,但是真的不明白确切的目的.

在此先感谢
关于

Hi All,
I wanted to understand about Copy on Write and paging concept. Please do not suggest Google. I already tried it, but really didn''t understand exact purpose.

Thanks in advance
Regards

推荐答案

每当内存不足时,都可以使用分页. 在分页中,您会将程序的一部分分配给某些内存,而不是整个程序.
此阶段的执行结束后,将清除此内存,并在该内存块中分配程序的下一部分.

非常非常简短地讲,这是分页.在此处阅读更多有关它的信息.< ^ ].

写时复制要复杂一些.
每当多个进程尝试更改同一资源时,都会复制该资源(或内存块).这样,每个进程都将修改其自己的内存(或资源)副本.
Whenever you fall short of memory, you can use paging.
In paging, you will allocate one portion of your program to some memory, and not the full program.
As soon as execution for this phase is over, this memory will be cleared and the next part of the program will be allocated within this memory block.

Very very briefly, this is paging. Read more about it here[^].

Copy on write is a little more complicated.
Everytime multiple processes try to change the same resource, copies of that resource (or memory block) are made. In this way, each process is modifying its own copy of memory (or resource).


请参阅 ^ ]


问题很笼统,因此您只能期待学习基本思想所需的信息.这里解释了这些概念:
http://en.wikipedia.org/wiki/Virtual_memory [ http://en.wikipedia.org/wiki/Paging [
The questions are quite general, so you only can expect the information needed to learn the basic ideas. The concepts are explained here:
http://en.wikipedia.org/wiki/Virtual_memory[^],
http://en.wikipedia.org/wiki/Paging[^].

Follow the links provided in these article to find further detail. Use the keyword learned to do more relevant search if you need more specific information on particular system (which you did not share with us).

—SA


这篇关于复制写概念的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆