Operating Systems Lab Manual / OS Page Replacement Algorithm First In First Out

Program Name Write C Program for Operating system Page Replacement Algorithm First In First Out
Theory
Here the memai memory pages are replaced based on First In First Out basis.
Program
Input
pages[12]={2,3,2,1,5,2,4,5,3,2,5,2}
Output
Page Replacement Algorithms - FIRST IN FIRST OUT 
 
2	-1	-1	
2	3	-1	
2	3	-1	
2	3	1	
5	3	1	
5	2	1	
5	2	4	
5	2	4	
3	2	4	
3	2	4	
3	5	4	
3	5	2	
 Number of page faults : 9 


Home     Back