First In First Out (FIFO) – This is the simplest page replacement algorithm. ...
Optimal Page replacement – In this algorithm, pages are replaced which would not be used for the longest duration of time in the future. ...
Least Recently Used – In this algorithm page will be replaced which is least recently used.First In First Out (FIFO) – This is the simplest page replacement algorithm. ...
Optimal Page replacement – In this algorithm, pages are replaced which would not be used for the longest duration of time in the future. ...
Least Recently Used – In this algorithm page will be replaced which is least recently used.
Chat with our AI personalities
LRU occurs when page fault occurs such that some page has been not used for longest period of time then we have to replace that page when next page comes. this stargey is known as so.
The Optimal Page Replacement Algorithm:The best possible page replacement algorithm is easy to describe but impossible to implement.
Line replacement units
There is a concept called as Virtual memory. Here, The pages which are not present in the RAM are placed in the hard disk. Whenever the CPU tries to access a page which is not in RAM, it results in a "Page Fault". Then, the required page is searched in the hard disk and then a victim page is selected in the RAM which is to be replaced. This is done using algorithms like LRU, FIFO, etc. Now, the victim page in RAM is swapped with the new page which is taken from the hard disk. After that, the CPU resumes the execution.