Fixed size partitions or static partitions
Descriptions
- Each partition contains only one job
- Entire program is stored contiguously and in memory from the beginning to the end of its execution
- This partition scheme is suitable for a system where its jobs have the same size or its sizes are known ahead of time and don't vary between reconfigurations.
Advantages
- Protect the job's memory space
- Allow several programs to be in memory at the same time, compared with the single-user scheme
Shortcomings
- May suffer from internal fragmentation
- Large jobs may have a longer turnaround time as they wait for free partitions of sufficient size or may never run
- A small job occupies its entire partition. As a result, the unused memory in the partition will remain idle.
Dynamic partitions
Descriptions
- Available memory is still kept in contiguous blocks but jobs are given only as much memory as they request.
Advantages
- Allocate as much memory as a process requests.
Shortcomings
- May suffer external fragmentation where fragments of memory between blocks of allocated memory cannot be used.
References
- McHoes, A., & Flynn, I.M. (2011). Understanding operating systems (6th ed.). CENGAGE Learning.
No comments:
Post a Comment