June 1999
Intermediate to advanced
368 pages
8h 21m
English
Even complex synchronization problems can be handled with variants of the techniques you have already encountered in this chapter. As an example, we'll look at a classical synchronization problem known as the readers/writers problem.
The readers/writers problem goes like this: A collection of processes need to share access to some resource. Some processes are “readers” that need to read the current state of the resource, while others are “writers” that need to update its state. Two rules must be followed:
The resource may be accessed by multiple readers or by a single writer at a given time, but not both.
No read request or write request may be postponed indefinitely.
According to the ...
Read now
Unlock full access