FCFS Scheduling in C – First Come First Served CPU Algorithm

First Come First Served (FCFS) is the simplest CPU scheduling algorithm used by an operating system — processes are executed strictly in the order they arrive, with no interruption once a process starts running. It works exactly like a queue at a ticket counter: whoever arrives first gets served first, and everyone else waits their …