Professional Documents
Culture Documents
Chapter 6 Synchronization (Background)
Chapter 6 Synchronization (Background)
Chapter 6 Synchronization (Background)
SYNCHRONIZATION
6.1:
BACKGROUND PRESENTED BY:
SABEJON, GREG R
Process Synchronization
▪ Is a way to coordinate processes that use shared
data. It occurs in an operating system among
cooperating processes.
▪ While executing many concurrent processes,
process synchronization helps to maintain shared
data consistency and cooperating process
execution.
Background
▪ Concurrent access to shared data may result in data
inconsistency.
▪ Maintaining data consistency requires mechanisms to
ensure the orderly execution of cooperating processes.
▪ Shared-memory solution to bounded-butter problem
allows at most n – 1 items in buffer at the same time. A
solution, where all N buffers are used is not simple.
Bounded-Buffer Shared Data
Bounded-Buffer Producers Process
Bounded-Buffer Producers Process
Bounded-Buffer Producers Process
Bounded-Buffer Consumer Process
Bounded-Buffer