Bully Algorithm

#cse6603

See, Wikipedia, Bhanu Priya, colostate (good example)

Bully Algo Steps

  1. An initiating process p sends election messages to all processes with higher IDs and awaits for ok messages.
  2. If a process receives an election message, it returns an ok message and starts an election.
    • election message comes from process of lower IDs.
    • Repeat step 1.
  3. If it receives any ok messages, it drops out and waits for an I won message.
    • ok message comes from process having higher id.
  4. If no ok messages are received, p becomes the coordinator and sends I won to all processes with lower IDs.
  5. If a process receives an I won message, then the sender is the coordinator.