[JAVA] Page replacement algorithm | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 1

[JAVA] Page replacement algorithm

Hi. I'm trying to implement this algorithm: Define a page-replacement algorithm addressing the problems of: 1. Initial value of the countersā€”0. 2. Counters are increasedā€”whenever a new page is associated with that frame. 3. Counters are decreasedā€”whenever one of the pages associated with that frame is no longer required. 4. How the page to be replaced is selectedā€”find a frame with the smallest counter. Use FIFO for breaking ties. I'm using code for a FIFO algorithm as a template: https://codeshare.io/5zA8er Could someone guide me please I'm new to coding. Thanks!

30th May 2020, 1:53 PM
R G
R G - avatar
0 Resposta