Time (ms) Running Program Waiting Program(s) 0.000 tcsh pine, pico 0.002 pine pico, tcsh 0.003 pico tcsh, pine 0.006 tcsh pine, pico
Address 0 1 2 3 4 5 6 7 8 Contents OS GB DD DD FM FM FM FM FMThe OS allocates xgdb and then pine (biggest program first):
Address 0 1 2 3 4 5 6 7 8 Contents OS GB DD DD XG XG XG PI FMThen xgdb finishes, and the OS reclaims the 3MB:
Address 0 1 2 3 4 5 6 7 8 Contents OS GB DD DD FM FM FM PI FMThen two copies of lynx, each requiring 2MB, are started. The first is allocated:
Address 0 1 2 3 4 5 6 7 8 Contents OS GB DD DD L1 L1 FM PI FMHow can the second copy be accomodated?
Address 0 1 2 3 4 5 6 7 8 Contents OS GB DD DD L1 L1 PI L2 L2
Address 0 1 2 3 4 5 6 7 8 DISK Contents OS GB DD DD P2 FM PI L2 L2 L1 (2MB)
Address 0 1 2 3 4 5 6 7 8 DISK Contents OS GB DD DD P2 G+ PI L2 L2 L1 (2MB) G+ (3MB)The disk space is called virtual memory. VM allows processes larger than the real memory.