A topic in the Open Knowledge Graph — a free, open map of 15,290 topics and the order to learn them in.

First-Come-First-Served (FCFS) Scheduling

College Depth 101 in the knowledge graph ☐ I know this ☆ Set as goal
27topics build on this
365prerequisites beneath it
See this on the map →
CPU Scheduling FundamentalsRound-Robin (RR) Scheduling→→Priority Scheduling AlgorithmsScheduling Fairness and Starvation Prevention
scheduling-algorithms non-preemptive fairness

Core Idea

First-Come-First-Served is the simplest scheduling algorithm: processes run in the order they arrive until completion. It is non-preemptive, fair, and easy to implement. However, short jobs can suffer long waits if a long job arrives first, causing the convoy effect and poor average waiting time.

Common Misconceptions

FCFS is optimal (it is not; convoy effect harms responsiveness). All non-preemptive algorithms are equally bad (FCFS often outperforms preemptive scheduling for CPU-bound workloads).

Explainer

From your study of CPU scheduling basics, you understand that the scheduler decides which ready process gets the CPU next, and that different algorithms optimize for different metrics (throughput, waiting time, response time). First-Come-First-Served is the most intuitive algorithm: processes are served in the exact order they enter the ready queue, and once a process starts running, it runs to completion without interruption. It is the scheduling equivalent of a single checkout line at a grocery store — whoever arrives first gets served first, regardless of how many items they have.

FCFS is implemented with a simple FIFO queue. When a process enters the ready state, it joins the back of the queue. The scheduler always picks the process at the front. Because FCFS is non-preemptive, a running process keeps the CPU until it either finishes or voluntarily blocks (for I/O, for example). There is no timer interrupt pulling the CPU away. This makes FCFS trivially simple to implement — no priority comparisons, no preemption logic, no time quantum to tune — and it is perfectly fair in the sense that no process can cut in line.

The critical weakness of FCFS is the convoy effect. Imagine a long CPU-bound process (say, a 100ms computation) arrives first, followed by ten short I/O-bound processes (each needing 1ms of CPU time). All ten short processes must wait behind the long one, even though they could each finish almost instantly. The average waiting time balloons. If the short processes arrived first, the average waiting time would be tiny. This order-dependence makes FCFS highly sensitive to arrival patterns and produces poor average waiting time compared to algorithms like Shortest Job First. The convoy effect also hurts I/O utilization: while short I/O-bound processes wait behind a long CPU-bound process, I/O devices sit idle.

Despite its weaknesses, FCFS is not useless. It serves as a baseline for evaluating other algorithms — if a more complex algorithm does not beat FCFS on your workload, the complexity is not justified. FCFS also works well for batch processing systems where all jobs are similar in length and fairness (no starvation) is more important than minimizing average wait. It is also commonly used as a tiebreaker within other algorithms: when two processes have the same priority or burst time, FCFS order resolves the tie. Understanding FCFS thoroughly prepares you for round-robin scheduling (which adds preemption via time slices) and priority scheduling (which replaces arrival order with priority values).

Practice Questions 5 questions

Prerequisite Chain

Understanding Zero → The Number Zero → Counting to Five → Counting to 10 → Counting to 20 → Counting a Set of Objects Up to 20 → Cardinality: The Last Number Counted → Matching Numerals to Quantities → Subitizing Small Quantities → Addition Within 10 → Number Bonds to 10 → Addition Within 20 → Doubles and Near Doubles → Doubles Facts Within 10 → Near Doubles Facts Within 20 → Mental Math Strategies for Addition → Mental Math: Adding and Subtracting Tens → Addition Within 100 → Repeated Addition as Multiplication → Multiplication as Equal Groups → Multiplication: Arrays → Basic Multiplication Facts (0s, 1s, 2s, 5s, 10s) → Multiplication Facts Within 100 → Division as Equal Sharing → Division as Grouping (Measurement Division) → Division: Grouping (Repeated Subtraction) Model → Division: Fair Sharing Model → Division as Equal Sharing → Division as Grouping → Basic Division Facts → Division Facts Within 100 → Multiplication and Division Fact Families → Relationship Between Multiplication and Division → Division Facts as Inverse of Multiplication → Remainders and Quotients in Division → Division Word Problems → Multi-Step Word Problems → Solving Multi-Step Word Problems → Multiplication Word Problems → Division Word Problems → Introduction to Long Division → Factors and Multiples → Prime and Composite Numbers → Equivalent Fractions → Relating Fractions and Decimals → Decimal Place Value → Integers and the Number Line → Comparing and Ordering Integers → Absolute Value → Adding Integers → Subtracting Integers → Multiplying Integers → Introduction to Exponents → Order of Operations → Integer Order of Operations → Variable Expressions → The Distributive Property → Variables and Expressions Review → Introduction to Polynomials → Adding and Subtracting Polynomials → Multiplying Polynomials → Factorial → Permutations → Combinations → Counting Principles: Addition and Multiplication Rules → Introduction to Graph Theory → Propositional Logic Foundations → Logical Equivalences → Boolean Algebra → Boolean Type and Truth Values → Comparison Operators and Boolean Tests → Logical Operators and Boolean Algebra → Boolean Algebra and Fundamental Laws → Logic Gates Fundamentals → Implementing Boolean Functions with Gates → Karnaugh Map Simplification → Combinational Circuit Design → Flip-Flops and Latches → Binary Counters: Design and Analysis → Binary Arithmetic → Fixed-Point Number Representation → Two's Complement Representation → Overflow and Underflow Detection → Binary Adders: Half-Adders and Full-Adders → Full Adder and Carry Propagation → Carry Lookahead Adder Design → Half Adder Circuit Design → Multiplication Circuit Design → Sequential Circuit Design → Registers and Register Files → Instruction Set Architecture (ISA) → Kernel Architecture and OS Structure → System Calls and User/Kernel Mode → Processes and the Process Control Block → Process Creation: fork() and exec() → Process Termination and Resource Cleanup → Process States and State Transitions → Process Model Formalization → Context Switching and CPU Dispatch → CPU Scheduling Fundamentals → Round-Robin (RR) Scheduling → First-Come-First-Served (FCFS) Scheduling

Longest path: 102 steps · 365 total prerequisite topics

Prerequisites (2)

Leads To (2)