Bully algorithm

Bully algorithm

The bully algorithm is a method in distributed computing for dynamically selecting a coordinator by process ID number.

When a process P determines that the current coordinator is down because of message timeouts or failure of the coordinator to initiate a handshake, it performs the following sequence of actions:

# P broadcasts an election message (inquiry) to all other processes with higher process IDs.
# If P hears from no process with a higher process ID than it, it wins the election and broadcasts victory.
# If P hears from a process with a higher ID, P waits a certain amount of time for that process to broadcast itself as the leader. If it does not receive this message in time, it re-broadcasts the election message.

Note that if P receives a victory message from a process with a lower ID number, it immediately initiates a new election. This is how the algorithm gets its name - a process with a higher ID number will bully a lower ID process out of the coordinator position as soon as it comes online.

References

* Witchel, Emmett (2005). [http://www.cs.utexas.edu/users/witchel/372/lectures/25.DistributedCoordination.ppt "Distributed Coordination"] . Retrieved May 4, 2005.


Wikimedia Foundation. 2010.

Игры ⚽ Поможем сделать НИР

Look at other dictionaries:

  • Chang and Roberts algorithm — Chang and Roberts[1] is a ring based election algorithm used to find a process with the largest identification. It is a useful method of election in decentralised distributed computing. Contents 1 The algorithm 2 Properties 3 …   Wikipedia

  • List of algorithms — The following is a list of the algorithms described in Wikipedia. See also the list of data structures, list of algorithm general topics and list of terms relating to algorithms and data structures.If you intend to describe a new algorithm,… …   Wikipedia

  • Список алгоритмов — Эта страница информационный список. Основная статья: Алгоритм Ниже приводится список алгоритмов, группированный по категориям. Более детальные сведения приводятся в списке структур данных и …   Википедия

  • Darwin's Dangerous Idea — For the PBS documentary, see Evolution (TV series). Darwin s Dangerous Idea   …   Wikipedia

  • Isaac Newton — Sir Isaac Newton …   Wikipedia

  • California Mental Health Services Act — In November 2004, voters in the U.S. state of California passed Proposition 63, the Mental Health Services Act (MHSA), which has been designed to expand and transform California’s county mental health service systems by increasing the taxes of… …   Wikipedia

  • List of Splinter Cell characters — The following is a list of characters found throughout the Splinter Cell series of video games and novels. Contents 1 Major characters 1.1 Lieutenant Commander Samuel Sam Fisher, USN (Ret.) 1.2 Colonel Irving Lambert, USA (KIA) …   Wikipedia

  • Campaign for "santorum" neologism — In response to comments by U.S. Senator Rick Santorum criticized as anti gay by gay rights groups[1] and some politicians,[2] sex columnist and gay rights activist Dan Savage began a campaign in 2003 to associate Santorum s surname with a sexual… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”