So this is not a homework question. It's a question from a previous exam my professor posted as resource to help us study for our midterm. However, there are two answers that (to me) seem like they could be the correct answer.
A.) A page fault means the physical page to be replaced must be saved to the hard disk. B.) The requested virtual is not in the physical memory.
Now, it is my understanding that a page fault is when the data stored in the physical memory page is not the data you need, therefore, you need to access the hard drive and load the correct data. Also, if the dirty flag is 1, then that means the previous data in physical memory has been modified, therefore you need to re-save that to the disk.
Therefore, it seems to me that both A and B are right, but I was wondering if anyone could tell me what they think the better option is.
If I were forced to choose I would say A.
SIDE NOTE I have emailed the professor about the answer but he's really bad about responding and hasn't emailed me back yet.