Least recently used – LRU page replacement techique is a way to arrange pages in virtual memory so that page fault will be minimum. If page fault occur than pages that are least recently used are replace with new page.
Here is the program that implement LRU page replacement technique using C language.
#define MAX1 100
#define MAX2 10
int find_min(int count, int size)
printf(“Enter Total number of pages (MAX-100): “);
printf(“Enter frame size (MAX 10): “);
printf(“\nPAGE FAULT is %d”,pfault);
tags: least recently used page replacement technique, page replacement algorithm, LRU algorith, implementation of LRU page replacement algo using C
There are 4 tricks to swap two numbers without using a third variable. You can use of them for your program. However the trick #4 is the smartest, fastest & easiest of all. The trick used is nothing but basic mathematics fundamentals like: multipliaction, division and addition , subtraction. Further explanation is given below:
Obsessed with the cheapest rates over the world Xiaomi is definitely hiding something! As reported earlier in many news channels that the phone is sold even at loss to grab the market but their need to be a reason for this. No one would do a business for loss at least it won’t make a(…)
This C Quiz is for programmers who are into programming over a time and have built the practical experienc working on the projects and studying into using the C compiler. Those who doesn’t program and just study: Beware ; Dont even think to qualify the quiz. This quiz contains 5 Mind Blowing questions to give(…)
There are many facebook virus that are been developed and transmitted for advertising but the most irritating ones are those that are been created for self interests of developers for making fool of the People. This virus named mrwmcw582.z is a virus that opens up in the Chat Box obviously sent by some of your friend who(…)
This android tutorial is to help you make your own video player in android. This video player will fetch all types of video formats on your android device and list them in listview and you can click on any of the listed video to run the video. This video player is simple to make. Download(…)