首页 > 试题广场 >

What scenarios would cause a p

[问答题]

What scenarios would cause a page of memory to be mapped into an user program's address space with the copy-on-write attribute enabled?

推荐

Answer:When a process performs a fork operation,a new process is created based on the original binary but with a new address space that is a clone of the original address space.One possibility is to not to create a new address space but instead share the address space between the old

process and the newly created process.The pages of the address space are mapped with the copy-on-write attribute enabled.Then,when one of the processes performs an update on the shared address space,a new copy is made and the processes no longer share the same page of

the address space.


发表于 2018-05-05 21:05:02 回复(0)