Propose the interaction and failure models for system

Assignment Help JAVA Programming
Reference no: EM131220966

This assignment is based on the principles of clock consistency and associated drifts in a distributed system. You have to create a simulation, running on a single machine, of a simple distributed system involving four process objects (PO).

Each PO will contain a logical clock, a concept first proposed by Lamport.1 The concept of the logical clocks and associated synchronization, based on the following rules, will attempt to resolve the clock consistency in this system:

1. Each event (internal, send, or receive) in the system is associated with a time-stamp, based on logical clocks.

2. Each PO, Pi, will have an associated logical clock, LCi. This logical clock is implemented as a simple counter that is incremented whenever an event takes place within that PO. Since a logical clock has a monotonically increasing value, it assigns a unique number to every event. The time stamp of an event is the value of the logical clock for that event. Hence, if an event A occurs before an event B in Pi, then LCi(A) < LCi(B).

3. A Pi will randomly decide if it wants to carry out an internal event or send a message to some other Pj. If it decides to send a message to a randomly selected Pj then it will attach the value of its logical clock to that message. A Pi may also decide to receive a message from another Pj if that Pj has sent a message to the Pi earlier.

4. Whenever a Pj receives a message from another Pi, it will advance its logical clock if the time stamp associated with the incoming message is greater than or equal to the current value of its logical clock, i.e., if Pj, receives a message (event B) from Pi with a time stamp t and LCj(B) ? t then Pj should advance its logical clock such that LCj (B) is equal to t + 1.

5. Any Pi, in the system, may exhibit Byzantine or arbitrary failures when it receives a message - e.g., it may choose not to advance its logical clock at all.

Your task is to:

1. Propose the interaction and failure models for this system. Discuss the pros and cons of your design.

2. Simulate this entire environment in C++ or Java using threads. Allow the simulation to reach a steady-state, i.e., run the program for a large number of iterations. During each iteration and at the end of the simulation compare the values of the logical clocks of POs - this comparison should indicate the clock drifts and their synchronizations. Repeat the simulation with different probabilities and access their effects on the clock drifts.

3. Create a brief report that indicates the aforementioned models and the analyses of the results of your simulation.

Verified Expert

This assignment is about the implementation of the lamport logical clock. It contains the make file "build.xml" and the source file " lamport.java" which is the gui application. It also contain the document that describes the pros and the cons of the design as well as the screenshot of the application.

Reference no: EM131220966

Questions Cloud

Understanding of cultural competency in health care practice : NMIH205: Cultural Competence in Health Care Practice Autumn 2015 Assessment tasks. Task Description - "Achieving cultural competence in health care is everybody's responsibility". (National Health and Medical Research Council (NHMRC) 2006, p. 3). B..
Provide an example of how to use the formula : What explanation would you give so that your staff understands that formula? Provide an example of how to use the formula. Develop a matrix using the formula as part of your example.
Residents of chelsea about the bombing : For the first time ever, the NYPD (through the Mayor's office) used the CMAS messaging this week first on Saturday night to alert the residents of Chelsea about the bombing and then again on Monday morning to alert all residents of NYC about the s..
Can the eastern religions of buddhism and hinduism : Can the Eastern religions of Buddhism and Hinduism and the monotheistic religions of Judaism, Christianity, and Islam produce the same ethical results? Why or why not? What is the determining factor?
Propose the interaction and failure models for system : Propose the interaction and failure models for this system. Discuss the pros and cons of your design - Simulate this entire environment in C++ or Java using threads. Allow the simulation to reach a steady-state, i.e., run the program for a large nu..
Zlow glow corporation regarding a licensing agreement : Topic 1: The Letter Offer? The Core Corporation is in negotiations with the Zlow Glow Corporation regarding a licensing agreement. The Core Corporation sent the following letter to the ZlowGlow Corporation
What is a development provisioning profile : What's a Development Provisioning Profile? What are some Application Resource Constraints when developing an iOS app? What are some iOS hardware limitations you face when developing an app?
Make a graph with variable on horizontal axis and variable : Make a graph with variable (a) on the horizontal axis and variable (b) on the vertical axis and plot each country. What might explain the relationship between these variables?
Create a single view iphone project using swift : Create a Single View iPhone project using SWIFT. Add a single .PNG image to the project asset catalog. Ensure that the application can support multiple orientations such as Portrait and Landscape.

Reviews

inf1220966

9/28/2016 7:25:37 AM

Thank you. I think this is what I wanted. I will let you know if I face any other issues before by submission. Perfect Thanks. This looks great. Thanks a lot for your help. I think I am good to go.

inf1220966

9/28/2016 7:25:20 AM

I asked the professor today about the approach I should follow and he mentioned that there is no need for GUI in this assignment. We just have to print the values in console part and no need to include GUI as that will be extra effort. And there was nothing mentioned in assignment to include GUI as such as well. I thin we have to take out part of GUI from that and just have to create threads and communicate between them and then compare the values. I was not sure which part to delete for GUI. Can you please ask your expert to take out GUI code so that I can just print values in the console as that part was not required.

inf1220966

9/28/2016 7:24:50 AM

1) The assignment asked to put the comments in the code that what code line does what because it will help me as well to understand the code when my teacher asks me that what and why I have done this. 2) I was asked to submit makefile for the code as well. Can you please ask your expert, he might know better what I am taking about here. Please let me know if you have any questions for the same or you want to know anything else. Also please confirm that this is surely plagiarism free because in my university they do a lot of plagiarism check and if I found guilty, I may be restigated. Please confirm the same. Also please confirm that concept of the thread was implemented as assignment strictly said that we have to use threads. and again while putting the comments we can specify that here concept of threads was implemented and that won't be a problem. Thanks for helping me. I will let you know if I face any difficulty as I will be having a more closer look at it tomorrow. But everything seems fine as of now. Thanks

inf1220966

9/28/2016 7:07:04 AM

I have submitted the payment. This is the critical assignment for me as if this doesn't go well, I will not be passed this subject. I need to score the most in this. Please make it plagiarism free for sure. I look to maintain good and future relations with you. Please provide me with updates whenever there is so that I can have a track where my assignment is. I am really worried about this one. Hope you understand. I just found out that I missed couple of lines of this assignment at the last : "Provide adequate documentation of your programs. Create a makefile for your program." I don't think this will be a problem as they are just asking to provide comments to the code . like we have to write a small comment with code that what is this code for. And the other one is to create a makefile for it. I am really sorry missed this one but that won't put any extra effort I guess. If you can please notify your expert for the same. That will be a great help.

inf1220966

9/28/2016 6:52:21 AM

Can you please let me know if this question of my assignment can be solved as directed in question and if yes. What is the time I can expect with the solution and how much will I get charged for this question. Please get back to me as soon as possible. I just want to confirm that will you will be working on all 3 parts of questions right? And as you know my last date for submission is 2nd but i don't want to wait till the last time in case I am not satisfied by your answer so that i have some time by my own. If you can please provide me an estimate that how much time it will take to you to complete the assignment and send it back to me if i make a payment right away. Sorry for being much over but i'm really anxious as i am using such kind of service for first time.

Write a Review

JAVA Programming Questions & Answers

  Convert the while loop in the following code segment

Convert the while loop in the following code segment to a do-while loop

  Programming languages for example pascal

Some programming languages for example Pascal have used the semi colon to seperate statements while java uses it to terminate the statements. which of them in your opinion is most natural and least likely to result in syntax errors? support your a..

  Projectyou will create a secure parts inventory catalog

projectyou will create a secure parts inventory catalog system using model 2 architecture. the application will require

  Write a program which randomly chooses an integer

Write a program which randomly chooses an integer from 1 to 100. The program should then tell the user.The program should then ask the user to complete the puzzle such that each row and each column consists of the letters

  Create a program that shows how android networking works

Create a program that shows how Android networking (URL, SMS, RSS) works, display the results of the program run on the emulator, and please capture screenshots of the program and emulater.

  Create a temperature sensor simulator

create a temperature sensor simulator. First, display a menu that will ask the user what season to simulate (1) winter (2) spring (3) summer (4) fall or (5) to exit. Once the use selects the season your program should ask the user how many simulation..

  Portable file system implement a portable file system with

implement a portable file system with java language. i do have some requirements.implement a portable file system pfs.

  What are the main differences between java programming

question 1 what are the major differences between java programming language and any other language? list and discuss

  Program that counts the number of occurrences of lowercase

Write a program that counts the number of occurrences of lowercase and uppercase vowels in entered lines of text. Use a two-dimensional array to store the vowel counts. The array's first column holds the counts for the lowercase vowels, and the secon..

  Write a java program that stores these integers

3. Write a java program that stores these integers 10, 20, 30, 40, 20 in an array named nums. Write the code to count all the occurrences of 20 and then display the count.

  Create a class called scorelist according to the uml diagram

Create a class called ScoreList according to the UML diagram. This class will allow a user to enter up to 100 scores into an array.

  What are mobile oss you have personally used explain the

write a 200- to 300-word short-answer response to the following bull what are mobile oss you have personally used?

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