Distributed Coordination

Timing Events

Timestamp

Mutual Exclusion

Centralized approach -- Single coordinator using 3 messages.

Distributed approach --- Sends messages to all processes. If all replies received, enter critical section. Replies are returned on 3 factors:

  1. Wait if in critical section
  2. Reply immediately if not in critical section AND do not wish to enter.
  3. If want to enter, look at timestamp and reply if the other process asked first.

Advantages:

  1. No deadlock possible.
  2. Mutual exclusion enforced.
  3. No starvation.
Problems:
  1. Need ID of all processes.
  2. Process failure?

Token Passing -- Similar to Token Bus LAN. If failure, election held by passing election message with ID enclosed to neighbor, who sends to its neighbor, etc. until it returns to originator. Every process that receives it sends out their ID so a process list can be built with all active processes included. Highest # becomes coordinator.

Atomic Transactions -- more difficult over network.

Concurrency Control -- Locking Protocols to protect data.

  1. Non-replicated scheme
  2. Majority
  3. Primary copy
  4. Single coordinator

Reaching Agreement -- Bad comms or bad processes

Deadlock detection -- nightmare in distributed systems, mostly impossible.


Index Previous Next

Copyright ©2014, G. Hill Price
Send comments to G. Hill Price