947 views
1 1 vote
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 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
Position:
Show:

Related questions

3 3 votes
1 1 answer
1.8k
1.8k views
tp21 asked Sep 22, 2019
1,769 views
To calculate EMAT in case of page fault we used:EMAT= page fault rate*(page fault service time) + (1-page fault rate)*(memory access time)My doubt is:In case of NO PAGE ...
2 2 votes
1 1 answer
4.4k
4.4k views
Akash Kumar Roy asked Apr 5, 2018
4,354 views
First read this whole thing what I am writing below:Case 1: If we have to access unit address in memory using TLB and we assume that no page fault occurs then,EMAT=p( T+M...
3 3 votes
2 2 answers
136
136 views
GO Classes asked Aug 12
136 views
A system makes an average of $2$ main-memory accesses per instruction.Whenever a page fault occurs, it causes an overhead of $40$ millisecondsWhat is the maximum allowabl...
0 0 votes
1 1 answer
89
89 views
GO Classes asked Aug 10
89 views
If an instruction takes $p$ microseconds and a page fault takes an additional $q$ microseconds, the effective instruction time if, on average, a page fault occurs every $...