FCFS - Online Code

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;
	clrscr();
	printf("\nEnter the no of processes=");
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{	printf("\nE
... (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

laka somvanshi on 2011-01-11 20:47:26 wrote,

code must consider on the arrival time of the processes.......

on including arrival time processes will be shorted on the basis of their arrival time......

-aasheesh

rahul agarwal on 2011-02-14 19:02:12 wrote,

repeat