What causes page faults?

前端 未结 7 857
日久生厌
日久生厌 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:33

    Operating Systems use paging to group items witch should be placed in physical memory and move them between physical memory and shared memory. most of the time, data items witch place in a single page, are related to each other. when data items in a page are not used for a long time, operating system moves it to virtual memory to free some space in physical memory. and then when a page is required witch is in virtual memory, operating system moves it from virtual memory (hard disk) to physical memory. this is Page Fault !

    and remember, different operating systems are different in paging algorithms.

    Basics of Page Faults

提交回复
热议问题