"Kristiaan Maree" <24*1*7*
3@s*u*e*t*u*a*e*u*a*> wrote:
> Hi,
> if we load the page frames in sorted by page num the memory looks like this:
>
> process 1: 0,1,2,3
> process 2: 4,5,6,7
> process 3: 99,99,99,99
> process 4: 99,99,99,99
>
>
> RAM: 0,1,2,3,4,5,6,7
> DISK: 99,99,99,99,99,99,99
>
> but if we get the instruction '3' there is no process 3 in main memory to swap to,
>
> instead are we supposed to put in 2 each to avoid this?
>
> e.g.
> process 1: 0,1,99,99
> process 2: 2,3,99,99
> process 3: 4,5,99,99
> process 4: 6,7,99,99
>
> RAM: 0,1,2,3,4,5,6,7
> DISK: 99,99,99,99,99,99,99,99
>
> so now instruction 3 changes it to
>
> RAM: 0,1,2,99,4,5,6,7
> DISK: 99,99,99,99,99,99,3,99
>
> or is there a better way?
Are you asking if there are any pages in RAM when the simulation starts?
The RAM is empty there are no pages in RAM.