Ds Chapter 5
Ds Chapter 5
a)three processes, each with its own clock; the clocks run at
different rates
b)Lamport's algorithm corrects the clocks
The positioning of Lamport's logical clocks in distributed systems
Mutual Exclusion
In a distributed system states that only one process is allowed to
execute the critical section (CS) at any given time.
In distributed systems, since there is no shared memory, these
methods cannot be used.
To prevent that such concurrent accesses corrupt the resource, or
make it inconsistent, solutions are needed to grant mutual
exclusive access by processes.
how are critical regions and mutual exclusion implemented in
distributed systems?
three algorithms: centralized, distributed, and token ring
A Centralized Algorithm
A coordinator is appointed and is in charge of granting
permissions
Three messages are required: request, grant, release.