C program for LRU page replacement algorithm
Under Category : Other CircuitsOUTPUT : 2 -1 -1 2 3 -1 2 3 -1 2 3 1 2 5 1 2 5 1 2 5 4 2 5 4 3 5 4 3 5 2 3 5 2 3 5 2 no of page faults : 4 1 2 3 4 5 6 7 8 9 10 11 [...]
OUTPUT : 2 -1 -1 2 3 -1 2 3 -1 2 3 1 2 5 1 2 5 1 2 5 4 2 5 4 3 5 4 3 5 2 3 5 2 3 5 2 no of page faults : 4 1 2 3 4 5 6 7 8 9 10 11 [...]
OUTPUT : 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 : 6 1 2 3 4 5 6 7 8 9 10 11 [...]
OUTPUT: enter no of processes: 5 enter process1 name: aaa enter process time: 4 enter process2 name: bbb enter process time: 3 enter process3 name: ccc enter process time: 2 enter process4 name: ddd enter process time: 5 enter process5 name: eee enter process time: 1 p_name P_time w_time aaa 4 0 bbb 3 4 [...]
Radio Clock listens to radio time signals from your radio and corrects the time on your PC clock. Radio Clock enables you to decode the time signals sent by various LF and HF radio stations in the standard frequency and time service. Radio Clock uses your PC to display the time code received from the [...]
It’s a simple metal detector design that has the quite good characteristics. the principle of operation which one differs from the classic schemes (BFO, transmit-receive known as “two-boxes” metal detector, inductive). The dynamic mode is used to find targets in interference environment. There is known from theory of signal filtration that if signal shape is [...]
This Sensor circuit was designed as an aid in parking the car near the garage wall when backing up. LED D7 illuminates when bumper-wall distance is about 20 cm., D7+D6 illuminate at about 10 cm. and D7+D6+D5 at about 6 cm. In this manner you are alerted when approaching too close to the wall. All [...]
This is a simple fire alarm circuit based on a LDR and lamp pair for sensing the fire. It uses a very simple approach to detecting smoke in the air. The alarm works by sensing the smoke produced during fire.The circuit produces an audible alarm when the fire breaks out with smoke. This probably isn’t [...]