os file-2

Upload: amitoz-rathore

Post on 31-Oct-2015

4 views

Category:

Documents


0 download

TRANSCRIPT

Program No: 1

WAP to implement First Come First Serve (FCFS) process scheduling

#include

#include

#include

void main()

{

char p[10][5];

int tot=0,wt[10],i,n;

float avg=0;

clrscr();

printf( ******** FIRST COME FIRST SERVE SCHEDULING ALGORITHM ********);

printf("\n\nenter no of processes:");

scanf("%d",&n);

for(i=0;i