Page replacement algorithms

 In this post I will explain how to get the output of page replacement algorithms. The page replacement algorithms in this code(c language) are

1.FIFO
2.Optimal
3.LRU
4.LFU 


Steps
1.Click the Source Code link and copy the code in that link.

2.Paste the code in Online Compiler
3. After executing you will be asked to ENTER YOUR CHOICE. You have to give 1 as your choice. 



4. After entering 1 you will be asked ENTER LENGTH OF PAGE REFERENCE SEQUENCE. You have to enter how many page references are there in your problem.


5. After giving the length, You have to give the page reference sequence

6.After giving page reference sequence, You have to give number of frames



7. After giving no.of frames. You have to select which page replacement algorithm you want to execute.

8. You will get the output for your selected page replacement algorithm

Online Compiler(Link for online compiler)



Comments

Popular posts from this blog

How to read a CSV file from Google Drive using Google Colab?

How to calculate WAITING TIME and TURN AROUND TIME in SJF-PRE-EMPTIVE scheduling using C program