Shortest Job First (SJF) - Online Code
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_wait,avg_tat,k;
clrscr();
printf("\nEnter the no. of processes=");
scanf("%d",&n);
for(i=0;i<n;i++)
{ printf("... (login or register to view full code)To view full code, you must Login or Register, its FREE.
Hey, registering yourself just takes less than a minute and opens up a whole new GetGyan experience.
Related Online Codes:
Comments
![]() | rajan g on 2011-01-31 06:17:03 wrote, super |
![]() | jayavm mullur on 2011-04-23 01:37:34 wrote, thank u............ |
![]() | justine andajao on 2012-03-10 05:29:15 wrote, can u help me?? |


