From d164054e72555693112e8366e36e98cbecef71d7 Mon Sep 17 00:00:00 2001 From: ananya-research Date: Mon, 28 Oct 2024 19:08:17 -0700 Subject: [PATCH] Add files via upload --- Scheduling Algorithm/FCFS.c | 56 +++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 Scheduling Algorithm/FCFS.c diff --git a/Scheduling Algorithm/FCFS.c b/Scheduling Algorithm/FCFS.c new file mode 100644 index 000000000..1e5887cd9 --- /dev/null +++ b/Scheduling Algorithm/FCFS.c @@ -0,0 +1,56 @@ +// Abhinandan Singh_1928002 +#include +#include +int main() +{ + char pn[10][10],t[10]; + int arr[10],bur[10],star[10],finish[10],tat[10],wt[10],i,j,n,temp; + int totwt=0,tottat=0; + printf("Enter the number of processes:"); + scanf("%d",&n); + printf("Enter the ProcessName|Arrival Time|Burst Time:\n"); + for(i=0; i