Operations Systems C2 Flashcards
What is the critical aspect of main memory management?
Main memory management is critical for the entire system’s performance
On what two items does the entire system performance depend?
The entire system performance depends on the amount of memory available and the optimization of memory during job processing
What are the four types of memory allocation schemes introduced
The four types of memory allocation schemes introduced are
Single-user systems,
Fixed partitions,
Dynamic partitions,
Relocatable dynamic partitions
DR SF
Describe the Single-User Contiguous Scheme
Loads the entire program into memory
contigious memory space is now been allocated so that the job(s) can be processed
What are the disadvantages of the Single-User Contiguous Scheme?
The disadvantages include lack of support for multiprogramming or networking and being cost-ineffective, making it unsuitable for business when introduced in the late 1940s and early 1950s
lack of surport for
multiprogramming
network
and cost in-effective
How does Fixed Partitions permit multiprogramming?
Fixed Partitions permit multiprogramming by by dividing main memory, with each partition dedicated to one job.
What are the responsibilities of Fixed Partitions in memory management?
Fixed Partitions are responsible for protecting each job’s memory space and matching job size with partition size
Protecting jobs mem space
job size —>{match} partition size
What are the characteristics of Fixed Partitions?
Fixed Partitions load the entire program side by side, and job allocation involves choosing the first available section of the Right size.
What is the main characteristic of Dynamic Partitions in memory management?
Dynamic Partitions allocate memory by creating sections in main memory, providing each job with space as needed.
What are the disadvantages of Dynamic Partitions?
Disadvantages include full memory utilization only when the first jobs are loaded, subsequent allocation leading to memory waste, and external fragmentation between blocks.
you need to have full mem only when the first job is loaded
and you need to allocate mem waste and external fragmentation bet blocks
What are the two methods for free space allocation in memory management?
The two methods are First-fit memory allocation and Best-fit memory allocation
How does the First-fit memory allocation method work?
In First-fit memory allocation, the Memory Manager organizes free/busy lists by memory locations, and a job is assigned the first partition large enough for fast allocation
organizes free/busy list by memory locations
jobs are assigned to the first parition large enough
resulting in memory waste but fast allocation
What are the advantages and disadvantages of First-fit memory allocation?
The advantage is faster allocation, but the disadvantage is memory waste
How does the Best-fit memory allocation method differ from First-fit?
In Best-fit memory allocation, free/busy lists are ordered by size, and a job is assigned the smallest partition large enough, reducing wasted space and internal fragmentation.
orgainizes free/busy list by size
and jobs are assigned to the smallest partition to accomindate it
resulting in reducung the memory watage and inter fragmentation but slower in performance wise
What is the goal of the Best-fit algorithm?
The goal is to find the smallest memory block where the job fits, with the entire table searched before allocation.