OSY6
OSY6
h>
#include <conio.h>
int main() {
int n, i;
clrscr();
scanf("%d", &n);
scanf("%d", &bt[i]);
wt[0] = 0;
total_wt += wt[i];
total_tat += tat[i];
getch();
return 0;
First-Come, First-Served (FCFS) is one of the simplest CPU scheduling algorithms used in operating
systems. It operates in the same manner as a queue: the process that arrives first is executed first.
It is a non-preemptive scheduling algorithm, meaning once a process starts execution, it cannot be
interrupted until it finishes.
Advantages:
1. Simple and Easy to Implement: The logic is straightforward and requires minimal system
resources.
2. The process at the front of the queue is assigned the CPU first.
3. Once the process finishes execution, the CPU is assigned to the next process in the queue.