Tag: conio

Program for Deadlock detection algorithm

Under Category : Other Circuits

INPUT: enter total no. of processes : 4 enter claim matrix : 0 1 0 0 1 0 0 1 0 1 0 0 0 0 1 1 0 1 0 1 enter allocation matrix : 1 0 1 1 0 1 1 0 0 0 0 0 0 1 0 0 0 0 0 [...]

Read More »

C program for Round Robin CPU Scheduling Algorithm

Under Category : Other Circuits

INPUT : enter the process name : aaa enter the processing time : 4 enter the process name : bbb enter the processing time : 3 enter the process name : ccc enter the processing time : 2 enter the process name : ddd enter the processing time : 5 enter the process name : [...]

Read More »

C program for finding remainder

Under Category : Other Circuits

OUTPUT: enter frame: 1 0 1 1 0 1 0 0 enter generator: 1 0 1 0 remainder is: 0 0 1 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 [...]

Read More »

C program to find the Shortest path for a given graph

Under Category : Other Circuits

OUTPUT: enter the cost matrix : 0 1 4 2 0 0 0 0 2 3 0 0 0 3 0 0 0 0 0 5 0 0 0 0 0 enter number of paths : 4 enter possible paths : 1 2 4 5 0 1 2 5 0 0 1 4 5 0 [...]

Read More »

C program for SJF CPU Scheduling Algorithm

Under Category : Other Circuits

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 eee 1 0 ccc 2 1 [...]

Read More »

C Program for Optimal Page Replacement Algorithm

Under Category : Other Circuits

OUTPUT : 2 -1 -1 2 3 -1 2 3 -1 2 3 1 2 3 5 2 3 5 4 3 5 4 3 5 4 3 5 2 3 5 2 3 5 2 3 5 no of page faults : 3 1 2 3 4 5 6 7 8 9 10 11 [...]

Read More »

C program for LRU page replacement algorithm

Under Category : Other Circuits

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 [...]

Read More »