What causes page faults?

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

    Resource allocation is a delicate balance between keeping primary storage available for use and preventing needing to go to secondary as much as possible. If a process tries to allocate memory and can't that's usually an exception and sometimes a fatal exception.

    Essentially, you can't keep everything in RAM with no free resources available because when a program starts or asks for more it will crash.

    0 讨论(0)
提交回复
热议问题