search
Log In
0 votes
130 views
Please help me explaining this in simpler words:

If we were to swap out process P1 and swap in process P2, the
I/O operation might then attempt to use memory that now belongs to process
P2. There are two main solutions to this problem: never swap a process with
pending I/O, or execute I/O operations only into operating-system buffers.
Transfers between operating-system buffers and process memory then occur
only when the process is swapped in. Note that this double buffering itself
adds overhead.
in Operating System 130 views
0

@manisha11

they are telling about, what problem could occur in  time of context switching. If suppose, we are doing SRTF operation and in middle we r doing IO operation, then which problem could occur- they explained that one. 

Is these line from Galvin?

0

@srestha yes but "

Transfers between operating-system buffers and process memory then occur
only when the process is swapped in. Note that this double buffering itself
adds overhead.???

0

chk this : https://cs.stackexchange.com/questions/89767/why-cant-oses-swap-out-processes-that-are-waiting-for-i-o

yes, it is double buffering because I think, 2 process working on memory same time

Please log in or register to answer this question.

Related questions

0 votes
0 answers
3
329 views
For the given question instead of the given order if we take one unit of P2 as its arrival time is 1 and then schedule P1 next we get the same answer,even in the hint they have given as the process which comes first should get first priority instead in ... first.My approach and the solution given ends up giving the same answer,does this happen for all cases or just happening for this question?
asked Jan 1, 2019 in Operating System sripo 329 views
...