Search⌘ K

First In, First Out (FIFO)

Explore the First In First Out (FIFO) scheduling algorithm in operating systems. Understand how FIFO manages job order and turnaround times, recognize its limitations with varying job lengths, and discover the convoy effect problem. This lesson helps you grasp why FIFO works well in some cases and where it falls short, setting the stage for improved scheduling methods.

We'll cover the following...

The most basic algorithm we can implement is known as First In, First Out (FIFO) scheduling or sometimes First Come, First Served (FCFS).

FIFO has a number of positive properties: it is clearly simple and thus easy to implement. And, given our assumptions, it works pretty well.

Example of FIFO

Let’s do a quick example together. Imagine three jobs arrive in the system, A, B, and C, at roughly the same time (TTarrivalarrival = 0). Because FIFO has to put some job first, let’s assume that while they all arrived simultaneously, A arrived just a hair ...