Bully algorithm: Difference between revisions

Content deleted Content added
Line 18:
 
# P broadcasts an Election message (inquiry) to all other processes with higher process IDs.
# If P receives no Answer from a process with a higher process ID, then it broadcasts a Victory and becomes the Coordinator.
Coordinator.
# If P receives an Answer from a process with a higher ID, P waits a certain amount of time for another process with a higher ID to broadcast a Victory message. If it does not receive a Victory message in time, it re-broadcasts the Election message.
# If P gets an Election message (inquiry) from another process with a lower ID it sends an Answer message back and starts a new election.