578 views
1 votes
1 votes
Suppose a process is suspended due a page fault(page is being written back to disk or required page is being read from disk). Now after the page IO is completed, the process becomes runnable or resumes execution ? Also will the scenario be different ,if the process itself requested for some IO(read , write , etc) ?

If it just becomes runnable, and if it is of low priority, isn't it possible that by the time it resumes execution the page for which it had faulted has again swapped back to disk ?

1 Answer

Best answer
3 votes
3 votes

It just becomes "runnable". 

Problem with low priority- I don't know how this is actually done, but after swapping in, the priority of the process can be temporarily made quite high. 

"isn't it possible that by the time it resumes execution the page for which it had faulted has again swapped back to disk"

This is the reason for thrashing rt? 

selected by

Related questions

0 votes
0 votes
0 answers
4
garvit_vijai asked Dec 8, 2018
412 views
I studied from book william stalling ,it was written there if we increase the size of page then pagefault first increases and then when pagesize become size of process th...