Skip to Content
Operating System Concepts, Seventh Edition
book

Operating System Concepts, Seventh Edition

by Peter Baer Galvin, Abraham Silberschatz, Greg Gagne
December 2004
Intermediate to advanced
921 pages
30h 34m
English
Wiley
Content preview from Operating System Concepts, Seventh Edition

Chapter 5. CPU Scheduling

CPU scheduling is the basis of multiprogrammed operating systems. By switching the CPU among processes, the operating system can make the computer more productive. In this chapter, we introduce basic CPU-scheduling concepts and present several CPU-scheduling algorithms. We also consider the problem of selecting an algorithm for a particular system.

In Chapter 4, we introduced threads to the process model. On operating systems that support them, it is kernel-level threads—not processes—that are in fact being scheduled by the operating system. However, the terms process scheduling and thread scheduling are often used interchangeably. In this chapter, we use process scheduling when discussing general scheduling concepts and thread scheduling to refer to thread-specific ideas.

Basic Concepts

In a single-processor system, only one process can run at a time; any others must wait until the CPU is free and can be rescheduled. The objective of multiprogramming is to have some process running at all times, to maximize CPU utilization. The idea is relatively simple. A process is executed until it must wait, typically for the completion of some I/O request. In a simple computer system, the CPU then just sits idle. All this waiting ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Operating System Concepts Essentials, Second Edition

Operating System Concepts Essentials, Second Edition

Abraham Silberschatz, Peter B. Galvin, Greg Gagne
Operating System Concepts, 9th Edition

Operating System Concepts, 9th Edition

Abraham Silberschatz, Peter B. Galvin, Greg Gagne
Operating System Concepts Essentials

Operating System Concepts Essentials

Peter Baer Galvin, Abraham Silberschatz, Greg Gagne
Operating System Concepts, 8th Edition

Operating System Concepts, 8th Edition

ABRAHAM SILBERSCHATZ, PETER BAER GALVIN, GREG GAGNE

Publisher Resources

ISBN: 9780471694663Purchase book