Bully Election Algorithm
Bully Election Algorithm
Election Algorithms
When is it invoked?
Process
3. If one of the higher ups answers , it takes over. P’s job is done.
4. When a site receives an ELECTION message from lower numbered site, it sends an OK message, saying that
he is alive and will take over.
5. Eventually, all but one takes over and announces himself to be the COORDINATOR, with coordinator
message.
Lab Expt :
Input:
Number of sites
Priority(optional)
Initiator site
Number of messages
• Election
• OR
• Coordinator