Create a java program that performs distributed systems task

Assignment Help JAVA Programming
Reference no: EM13803029

Can someone create a Java program that performs the following distributed systems tasks? This should be easy for a Java programmer.

The following tasks should be performed within the code:

-Seqeuncing
This means a Task cannot complete until another task is fulfilled, example
T1->T2->T3
this means transaction 2 cannot happen unless T1 is done, as well as T3 cannot happen until T2 is done.

-parallelism
The tasks here are done in parallel
T1 and T2 are done together (T1||T2)
or chain parallel (T1||T2||T3) means all three transactions are done together
T1||T2->T3||T4
this means that both T3 and T4 can't start in parallel until both T1 and T2 are done in parallel.

-Nesting
this task is self-explanatory, you can use both parallelism and seqeuencing .

-hard wired tasks
here I need you to help me express, at a basic level, what a task does.
T1 = some calculations
this assignment is about building a data structure and generating a SCHEDULE for the task graph, calculation is one of:
sum N - sum the numbers from 1 to N in a loop. N can be up to 64-bit integers.
sleep N - sleep for N seconds using system sleep.
T1 ::= sleep 15
Defines a task T1 that sleeps for 15 seconds.
T2 ::= sleep 10
Defines a task T2 that sleeps for 10 seconds.
T3 ::= sum 10000000
Defines a task T3 that sums the numbers from 1 to 10000000
you can come up with an input, an example of an input would be :
T1 -> T2 || T3 -> T4
T1 := sleep 10
T2:= sleep 50
T3 := sum 100000
T4:= sum 1000000
A second more complex example would be :
T1-> (T2 -> T3 || (T4 -> T5)) -> T6
T1:= sleep 10
T2 := sleep 50
T3 := sum 100000
T4:= sum 1000
T5 := sleep 25
T6 := sum 10000010

Reference no: EM13803029

Questions Cloud

Accurate and functional markup code : Demonstrate the following characteristics: Effective file management, Accurate and functional markup code and Effective and functional navigation
What is strategic management of technology : What is strategic management of technology
About on cloning : The topic should be on cloning
Popular environmental slogan : In the 1980s a popular environmental slogan was "Reduce, Reuse and Recycle" and now "Go Green," is a popular message. Consider the Reusable Grocery Bags sold in markets everywhere.
Create a java program that performs distributed systems task : Can someone create a Java program that performs the following distributed systems tasks? This should be easy for a Java programmer
How i manage conflict productively with family : How I manage conflict productively or unproductively with family, work, or dating relationships. How managing conflict in my life has been effective or ineffective.
Article critique-talking styles : Use the ProQuest database to locate and read the article entitled, "Shared Talking Styles Herald New and Lasting Romance". Then, visit the Language Style Matching website and, using sample written communication between you and another person, foll..
The study on the effectiveness of the hiv and aids : study explores the effectiveness of the HIV and AIDS
Write the matlab code to create the vector : Write the MATLAB code to create the vector [2,4,6,...,98,100] and store it in a variable named x(Hint: There is a shorthand notation for regularly spaced vectors)

Reviews

Write a Review

JAVA Programming Questions & Answers

  Rock-paper-scissors :- java problem

Design decision marks are based on how you implemented our programs/classes.

  Write the code and output result1 real cash register can

write the code and output result.1. real cash register can handle both bills and coins. design a single class that

  Create online store web site

the Java and JSP source codes and SQL scripts for creating a database in Oracle - any configuration files used

  Develop the game using the concepts of cohesion

Develop the game using the concepts of Cohesion, Coupling and RDD, i.e., responsibility-driven design.

  Virtual machine forensics

Determine what you perceive to be the greatest challenge when dealing with virtual machines from a system forensics perspective. Provide a rationale with your response.

  Write a graphical user interface class

Write a graphical user interface class called SentenceCounterGUI. It should be able to manipulate the sentence of words and have the behaviour label.

  Implement a shopping cart class with user interface

project will be to implement a shopping cart class with user interface (UI) that contains main() in Net Beans. The UI class will be used to perform user input/output and to invoke the appropriate methods of shopping cart class. When your program star..

  Elliptic curve encryption

write a program to implement Elliptic Curve encryption/decryption and program will read parameters, plaintext and ciphertextfrom a file named "input.txt" (under the same directory).

  Algorithm design and development - the graduate designs and

algorithm design and development - the graduate designs and develops algorithms for problem solving and implements

  Why the java is called platform independent

Why the Java is called platform independent? Discuss.

  Write an application bmicalc

Write an application (BMICalc) that reads the user's weight in poinds and height in inches, then calculates the Body Mass Index.

  Write a program that reads in a text file and then computes

Write a program that reads in a text file and then computes and prints a table of letter frequencies. For example, if the file is the text of "A Tale of Two Cities", found in the file at data/tales.txt , the program will print

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