Allocation of Frames Name
Allocation of Frames Name
S R U S H T I S H U LYA L AD
4 GM 2 1 AI0 5 2
GLOBAL VERSUS LOCAL ALLOCATION
Replacement:
It means whenever the CPU needs to execute the page it cheeks whether that page is present in
the main memory or not if the page is present in the main memory then CPU executes that page.
Suppose the page is not present then it is called as page fault.
If page fault occurs then operating system loads that page from secondary memory to the primary
memory.
If the main memory is completely full, in order to store the new page from secondary memory we
use Global replacement allocation or Local replacement allocation.
GLOBAL REPLACEMENT ALLOCATION:
When a process needs a page which is not in the memory, it can bring in the new page and
allocate it to a frame from the set of all frames, even if that frame is currently allocated to some
other process that is, one process can take a frame from another.
Advantage:
Does not hinder the performance of processes and hence results in greater system throughput.
Disadvantage:
The page fault ratio of a process can not be controlled by the process itself.
LOCAL REPLACEMENT ALLOCATION:
•When a process needs a page which is not in the memory, it can bring the new page and allocate it
to a frame from its own set of allocated frames only.
•Advantage:
•The pages in memory for a particular process and the page fault ratio is affected by the paging
behavior of only that process.
•Disadvantage:
• A low priority process may hinder a high priority process by not making its frames available to
the high priority process.