Results 1 to 2 of 2

Thread: Bully Algorithm

  1. #1
    gizmo is offline Member
    Join Date
    Nov 2011
    Posts
    1
    Rep Power
    0

    Default Bully Algorithm

    I have a basic knowledge of threads but i have a problem to solve and i have some difficulties.I want to implement the Bully Algorithm for leader election in Java.I want to use at least 8 processes and each process to be able to start the election.A random generator will have to be used in each process ot make it 'fail' with a certain probability in every step and each process will print a message of failure and stop replying to other processes.Finally each process will print a message of what is doing (requests permission,announces leadership and so on).If anyone has aa suggestion is very welcome.I am very confused and i would appreciate any help.

  2. #2
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,516
    Rep Power
    25

    Default Re: Bully Algorithm

    Get a good understanding of how the algorithm works, design code to implement it, write and debug the code.
    If you have problems getting the code to work, post your code here with a description of the problem and/or questions about it.

Similar Threads

  1. A* algorithm
    By zjames in forum New To Java
    Replies: 6
    Last Post: 11-25-2010, 12:02 PM
  2. Algorithm help? :)
    By Mirix in forum New To Java
    Replies: 6
    Last Post: 05-24-2010, 02:08 AM
  3. Help with an Algorithm
    By Manfizy in forum New To Java
    Replies: 22
    Last Post: 07-03-2009, 07:16 AM
  4. O(log n) algorithm help !!!!!!
    By itseeker87 in forum New To Java
    Replies: 8
    Last Post: 09-09-2008, 05:12 PM
  5. Help with algorithm
    By susan in forum New To Java
    Replies: 1
    Last Post: 07-13-2007, 10:26 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •