Question
Download Solution PDFWhich algorithm in a computer Operating System uses paging for memory management?
Answer (Detailed Solution Below)
Detailed Solution
Download Solution PDFThe correct answer is Page Replacement.
Key Points
- In a computer operating system that uses paging for virtual memory management, page replacement algorithms decide which memory pages to page out, sometimes called swap out, or write to disk, when a page of memory needs to be allocated.
- Page replacement happens when a requested page is not in memory (page fault) and a free page cannot be used to satisfy the allocation, either because there are none, or because the number of free pages is lower than some threshold.
- When the page that was selected for replacement and paged out is referenced again it has to be paged in (read in from disk), and this involves waiting for I/O completion.
- This determines the quality of the page replacement algorithm: the less time waiting for page-ins, the better the algorithm.
- Replacement algorithms can be local or global.
- When a process incurs a page fault, a local page replacement algorithm selects for replacement some page that belongs to that same process (or a group of processes sharing a memory partition).
- A global replacement algorithm is free to select any page in memory.
- Local page replacement assumes some form of memory partitioning that determines how many pages are to be assigned to a given process or a group of processes.
- Most popular forms of partitioning are fixed partitioning and balanced set algorithms based on the working set model. The advantage of local page replacement is its scalability: each process can handle its page faults independently, leading to more consistent performance for that process. However global page replacement is more efficient on an overall system basis.
Last updated on Jul 3, 2025
-> The Institute of Banking Personnel Selection (IBPS) has officially released the Provisional Allotment under the Reserve List on 30th June 2025.
-> As per the official notice, the Online Preliminary Examination is scheduled for 22nd and 23rd November 2025. However, the Mains Examination is scheduled for 28th December 2025.
-> IBPS RRB Officer Scale 1 Notification 2025 is expected to be released in September 2025..
-> Prepare for the exam with IBPS RRB PO Previous Year Papers and secure yourself a successful future in the leading banks.
-> Attempt IBPS RRB PO Mock Test. Also, attempt Free Baking Current Affairs Here