Implement the ping coordinator election algorithm

Assignment Help Programming Languages
Reference no: EM131576954

Objectives

1. Implement the Ping Coordinator Election Algorithm (i.e. Chapter 6, slides 40&41)

2. More experience with socket programming for inter-process communication

Project Specification

1. You are to implement the Ping Coordinator Election Algorithm over sockets. More specifically, your program needs to simulate the following scenarios:

a. Initially, all processes start up and communicate in a ring organization. They should display the messages being passed so that we can observe the process. They should pass a "token" around the ring. You should build delays into the process so that you can clearly demonstrate the working of the algorithm. Processes are numbered. Each process should receive the token at some small, predetermined interval. Make this interval different for each process so that they do not initially all start an election at the same time.

b. When a process does not see the token in the expected interval it will initiate an election. After the system elects a coordinator you will need to demonstrate the following scenario:
i. Manually stop communication by the current coordinator.
ii. An election will be initiated by a process that does not see the token when expected.
iii. The election should proceed according to the ring algorithm given in Chapter 6 (slides 30&31).

c. The crashed process should be brought back up and it should initiate an election.

d. Set the timers so that two elections (by processes 2 & 5) run at the same time and show that they still work.

2. You need to clearly show the communication between processes.

Other Specifications
1. This is an individual project.
2. Your program can be run on any platform that you can provide access to for the TA.
3. Either a console or GUI program is acceptable.
4. Your source code should contain your name and login ID.

Write-up:

Your write-up should include instructions on how to compile and run your program. Ideally it should be complete enough that the TA can test your program without your being there. Your write-up should include any known bugs and limitations in your programs. If you made any assumptions such as limits on the size of a user name you should document what you decided and why? This write-up should be in text format and should be submitted along with your code. If you use code found on the Internet or in a book then the wryftv, must give a reference to the source so we can tell that you did not copy the code from another student.

Reference no: EM131576954

Questions Cloud

What can police officers do to reduce communication barriers : Barriers that exist between the police and the community they serve. What can police officers do to reduce communication barriers? Provide examples.
Intelligence discipline and its associated spy technology : Technological changes on espionage and counterespionage during the post-Cold War era. Choose a particular intelligence discipline
Define the type of graph known as a mesh of trees : Define the type of graph known as a mesh of trees. Explain how this graph is used in applications to very large system integration and parallel computing.
Compute the direct materials cost : Using the weighted-average method, compute the direct materials cost and conversion cost per equivalent unit and assign April's costs to the department output
Implement the ping coordinator election algorithm : Implement the Ping Coordinator Election Algorithm and socket programming for inter-process communication - how to compile and run your program
Summarizes the item of conflict : Write a 1,050- to 1,400-word paper, which summarizes the item of conflict, and then discuss its significance for conflict diagnosis and conflict resolution.
Describe the techniques used by chess-playing programs : Describe the techniques used by chess-playing programs such as Deep Blue. Explain the properties of the Deep blue technique.
Discuss the types of writing and communication skills : Conduct an online search for job descriptions associated with being an product manager and think about what tasks are accomplished in a typical day
Choose one of the following major criminal justice areas : Choose one of the following major criminal justice areas: law enforcement, prisons/corrections, the courts, Homeland Security, private security.

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd