Implementation of Bully Election algorithm in Distributed systems

Posted on 2004-11-03
Last Modified: 2011-02-08
I want to implement a bully election algorithm with seven processes(p1 to p7) communicating.where highest numbered process will be coordinator when it is down.Any of the lower number process can intiate election like p4 but the election is won by p6 if it up else p5 if p6 down and p5 up or p4 is winner when p5 , p6 are down. Can any one implement this algorithm in Java. Using RPC and multiple client server technology.
Question by:prashanth_gurijala
    LVL 86

    Expert Comment

    This sounds like classwork/homework - please read the guidelines about this
    LVL 4

    Accepted Solution

    classwork/homework....but it is an interesting question.

    I don't see why not, obviously it wont be as simple as using PVM in C programming for parallel computing.

    I can't personally implement this algorithm (first time I heard of it) but you can start off by reading Java networking tutorial. It's the question of establishing a pool of nodes/processors then very much back message-passing routines.

    Expert Comment

    hi prashanth_gurijala, . how did you get on with this implementation.

    did you manage to code the algorithm.

    i am doing something very similar to this as well.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Suggested Solutions

    Title # Comments Views Activity
    tenRun challenge 28 67
    method argument as final 1 54
    matchUp  challenge 9 47
    factorial example challenge 10 44
    1. Package the applet into a JAR file. The applet must be in a JAR file before a certificate can be attached to it. Use the jar JDK utility. If the applet was previously referenced with the help of a codebase attribute in  tag, replace the codebase …
    For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
    Video by: Michael
    Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
    Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now