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.




Comments

rajan g on 2011-01-31 12:17:03 wrote,

super

jayavm mullur on 2011-04-23 06:37:34 wrote,

thank u............

justine andajao on 2012-03-10 11:29:15 wrote,

can u help me??
Shortest Job First in java??

Hema Latha on 2013-08-04 12:50:49 wrote,

Good.But,i require sjf with arrival times.