OPERATING SYSTEM - C Codes

Shortest Job First (SJF)

Description C Language: This is a sample code to implement the Shortest Job First Algorithm, Operating System Source Code #include<conio.h> void main() { int n,i,j,a[10],b[10],temp; float sum,avg_w ...

4 Comments. 3439 views since Aug 22, 2008

First Come First Serve (FCFS)

Description operating system Source Code #include<conio.h> void main() { int a[10],i,j,n; float sum,avg_wait,avg_tat,k; clrscr(); printf("\nEnter the no of processes="); scanf("%d ...

1 Comments. 1707 views since Aug 22, 2008

Round Robin

Description C Language: This is the code implementation of Round Robin algorithm of CPU Scheduling. Source Code #include<conio.h> void main() { int n,i,j,a[15],b[15],q,sum,c[15]; float k,avg_ ...

1 Comments. 1553 views since Aug 22, 2008

Priority Scheduling

Description C Language: This is the code implementation of Priority Scheduling Algorithm of CPU Scheduling Source Code #include<conio.h> void main() { int i,j,temp,a[15],b[15],p[15],n; float k,sum, ...

1 Comments. 1315 views since Aug 23, 2008

Shortest job First

Description it is prog. of CPU scheduling algo i.e. Shortest Job First. Source Code #include <conio.h> void main() { int n,i,j,a[10],b[10],temp; float sum,avg_wait,avg_tat,k; clrscr(); print ...

2 Comments. 1042 views since Aug 26, 2008

FCFS

Description FCFS is a CPU Scheduling Algorithm that works on the basis of first come first serve. Source Code #include<conio.h> void main() { int a[10],i,j,n; float sum,avg_wait,avg_tat,k; clr ...

2 Comments. 1011 views since Aug 30, 2008