Chapter 2: Memory Management: Early Systems, Flynn and McHoes, Understanding Operating Systems, Second Edition, PWS Publishing Co. (1997)

Association for Computing Machinery web site:
http://www.acm.org/

A nice history of small system operating systems can be found at U. California, Davis:
http://escher.cs.ucdavis.edu:1024/classnotes/ecs15/lect7.html

Lesson A:
Fixed Partitions
Conceptual Overview: Dynamic Partitions, Compaction, Relocation

Single-Program Contiguous Scheme

Program Counter Address Register Base Register Accumulator
6   4  
0 1 2 3
       
4 |Count| 5  |HighVal| 6  Clear Count 7  Loop
Count = Count + 1
    CLR 4 INC 4
8   Test =
Count - HighVal
9 10  Test > 0? 11  False: GoTo Loop
LD 4 SUB 5 COMP PC = Loop
12  True: Stop 13 14 15
HLT      

Fixed Partitions

Partition Size kB Memory Load Address Allocated To Partition Status
64k 64k Job 1 Allocated
128k 192k Job 3 Allocated
64k 256k Job 5 Allocated
128k 384k Job 2 Allocated
64k 448k   Free

Dynamic Partitions

Partition
Size (kB)
Memory Load Address Allocated To Partition Status Job Size (kB) Internal Fragmentation (kB)
           
           
           
           
           
Time Step Page 0 Page 1 Page 2 Page 3 Jobs Waiting
0 A A A B C2.3.0, D1.5.0, E4.2.0
1 A A A D C2.3.0, E4.2.0
2 C C   D E4.2.0
3 C C   D E4.2.0
4 C C   D E4.2.0, F3.3.4, G1.1.4
5       D E4.2.0, F3.3.4, G1.1.4
6 E E E E F3.3.4, G1.1.4, H2.2.6
7 E E E E F3.3.4, G1.1.4, H2.2.6
8 F F F G H2.2.6
9 F F F   H2.2.6
10 F F F   H2.2.6
11 H H      
12 H H      
Time Step Page 0 Page 1 Page 2 Page 3 Jobs Waiting
0 E E E E A3.2.0, B1.1.0, C2.3.0, D1.5.0
1 E E E E A3.2.0, B1.1.0, C2.3.0, D1.5.0
2 A A A D B1.1.0, C2.3.0
3 A A A D B1.1.0, C2.3.0
4 F F F D B1.1.0, C2.3.0, G1.1.4
5 F F F D B1.1.0, C2.3.0, G1.1.4
6 F F F D B1.1.0, C2.3.0, G1.1.4, H2.2.6
7 C C H H B1.1.0, G1.1.4
8 C C H H B1.1.0, G1.1.4
9 C C B G  
10          
11          
12          

Memory Map

Relocation and Compaction