Hot Search : Source embeded web remote control p2p game More...
Location : Home Search - address memory
Search - address memory - List
对于同一个进程,多次加载时,会创建其多个实例,如第一个实例A的进程地址空间(4GB),第二个实例B的进程地址空间(4GB),每个进程实例的地址空间中都有多个代码页面和 多个数据页面, 首次A加载时,它们会被映射到虚拟内存中,当出出数据页面被修改时,系统会首先截获,接着为应用程序A试图写入的内存页面分配一块新的内存,然后复制页面内容,最后让应用程序写入刚分配的内存块.此时,应用程序A的数据页面已经指向的新的地方.这里主要运用了页面的写时复制特性. -For the same process, many loaded, will create more than one instance of its first instance A process address space (4GB), the second instance of B, the process address space (4GB), the address of each process instance space has multiple code pages and multiple data page A is loaded for the first time, they will be mapped into the virtual memory, when out of the data page is modified, the system will first intercepted, then application A attempts to write memory page allocation into a new memory, and then copy the content of the page, the last application to write to the newly allocated memory block. Application A data page has pointed to the new place where the main use of the page write when replication features.
Date : 2026-01-11 Size : 2.75mb User : kk
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.