What causes page faults?

前端 未结 7 856
日久生厌
日久生厌 2020-12-12 20:55

According to Wikipedia:

A page fault is a trap to the software raised by the hardware when a program accesses a page that is mapped in the virtual add

7条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-12 21:44

    Any time a mmap'd section is read, a page fault is generated, which includes whenever you load a DLL. So, loading a DLL doesn't actually read all of the DLL into memory, it only causes it to be faulted in as the code is executed.

提交回复
热议问题