Operating Systems Lab Manual / OS Page Replacement Algorithm Least Reccently used

Program Name Write C Program for Operating system Page Replacement Algorithm Least Recently used
Theory
Least recently used pages are replaced in the memory.
Program
Input
p[12]={2,3,2,1,5,2,4,5,3,2,5,2}
Output
Page Replacement Algorithm - LEAST RECENTLY USED 

	2	-1	-1
	2	3	-1
	2	3	-1
	2	3	1
	2	5	1
	2	5	1
	2	5	4
	2	5	4
	3	5	4
	3	5	2
	3	5	2
	3	5	2

 Number of page faults :7


Home     Back