Micro Project: Shri H. H. J. B. Polytechnic
Micro Project: Shri H. H. J. B. Polytechnic
TECHNICAL EDUCATION
SHRI H. H. J. B. POLYTECHNIC,
CHANDWAD-423101 (Nasik)
MICRO PROJECT
Academic year: 2020-21
TITLE OF PROJECT
Place: CHANDWAD
Date: ………………………
Comments / Suggestions about team work / leadership / inter – personal communication (if any)
--------------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------------
Name and designation of the faculty Member ----prof . P.sali
Signature -------------------------
1.0 Rationale:
In an operating system that uses paging for memory management, a page replacement algorithm is
needed to decide which page needs to be replaced when new page comes in.
Page Fault – A page fault happens when a running program accesses a memory page that is mapped
into the virtual address space, but not loaded in physical memory.
Since actual physical memory is much smaller than virtual memory, page faults happen. In case of page
fault, Operating System might have to replace one of the existing pages with the newly needed page.
Different page replacement algorithms suggest different ways to decide which page to replace. The
target for all algorithms is to reduce the number of page faults. Page replacement algorithms are the
techniques using which an Operating System decides which memory pages to swap out, write to disk
when a page of memory needs to be allocated. ... This process determines the quality of the page
replacement algorithm: the lesser the time waiting for page-ins, the better is the algorithm.
Advantages of FIFO in Page Replacement Algorithm are:
1. It is very easy to understand.
2. It is very easy to implement.
Disadvantages of FIFO in Page Replacement Algorithm are:
1. The oldest block in memory may be often used.
Advantages of LRU in Page Replacement Algorithm are:
1. LRU Page Replacement Algorithm is quite efficient.
Disadvantages of FIFO in Page Replacement Algorithm are:
1. Implementation difficult. This algorithm will be requires keeping track of what was used when,
which is expensive if one wants to make sure the algorithm always discard the list recently used
item.
3) Least recently used page will be replaced which may sometimes take a lot of time.
1.FIFO:
This is the simplest page replacement algorithm. In this algorithm, the operating system keeps track of
all pages in the memory in a queue, the oldest page is in the front of the queue. When a page needs to be
replaced page in the front of the queue is selected for removal.
Example-1Consider page reference string 1, 3, 0, 3, 5, 6 with 3-page frames. Find number of page
faults.
Sr no Name of resource/material
1 Ubuntu
2 www.google.com
3 Techno publication
A computer can address more memory than the amount physically installed on the system. This
extra memory is actually called virtual memory and it is a section of a hard disk that's set up to
emulate the computer's RAM.
The main visible advantage of this scheme is that programs can be larger than physical memory.
Virtual memory serves two purposes. First, it allows us to extend the use of physical memory by
using disk. Second, it allows us to have memory protection, because each virtual address is
translated to a physical address.