On a process table page: what happens when a page frame is sent to disk?

I understand that in general there is one page table for each process. Then my question is: what happens if a page crashes in a running process, if the OS should send a page frame of a non-working process back to disk. It is also necessary to update the page table for a non-working process, otherwise, when it starts again, its page table will be incorrect. However, in all the texts that I read, this is not mentioned. I do not understand something?

+4
source share
1 answer

Each process has a page table, but the page table is for this process and does not belong to this process, but belongs to the kernel (this is a bit strange wording, but I hope you understand what I mean). Therefore, when a non-running process is unloaded to disk, the page table itself still "works" and is updated. I do not think that the page table itself will change to disk, as this will cause very strange problems.

+3
source

All Articles