Skip to Main Content
Operating System Concepts Essentials, Second Edition
book

Operating System Concepts Essentials, Second Edition

by Abraham Silberschatz, Peter B. Galvin, Greg Gagne
November 2013
Beginner content levelBeginner
784 pages
26h 32m
English
Wiley
Content preview from Operating System Concepts Essentials, Second Edition

images

Process Synchronization

A cooperating process is one that can affect or be affected by other processes executing in the system. Cooperating processes can either directly share a logical address space (that is, both code and data) or be allowed to share data only through files or messages. The former case is achieved through the use of threads, discussed in Chapter 4. Concurrent access to shared data may result in data inconsistency, however. In this chapter, we discuss various mechanisms to ensure the orderly execution of cooperating processes that share a logical address space, so that data consistency is maintained.

CHAPTER OBJECTIVES

  • To introduce the critical-section problem, whose solutions can be used to ensure the consistency of shared data.
  • To present both software and hardware solutions of the critical-section problem.
  • To examine several classical process-synchronization problems.
  • To explore several tools that are used to solve process synchronization problems.

5.1 Background

We've already seen that processes can execute concurrently or in parallel. Section 3.2.2 introduced the role of process scheduling and described how the CPU scheduler switches rapidly between processes to provide concurrent execution. This means that one process may only partially complete execution before another process is scheduled. In fact, a process may be interrupted at any point in its instruction ...

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

Operating System Concepts Essentials

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

Operating System Concepts, 9th Edition

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

Operating System Concepts, 8th Edition

ABRAHAM SILBERSCHATZ, PETER BAER GALVIN, GREG GAGNE

Publisher Resources

ISBN: 9781118804926Purchase bookOtherOther