Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Java Expert


Home >> Java

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

Java, Programming

  • Category:- Java
  • Reference No.:- M91373028
  • Price:- $50

Guranteed 36 Hours Delivery, In Price:- $50

Have any Question?


Related Questions in Java

Can someone kindly help me to consider whether java

Can someone kindly help me to consider whether Java provides the facility of operator overloading? If it does, may you kindly describe how overloading operators can be accomplished? If not, may you kindly describe why yo ...

Overviewyou are required to use java se 80 and javafx to

Overview You are required to use Java SE 8.0 and JavaFX to develop a Graphical User Interface (GUI) for the FlexiRent rental property management program created in Assignment 1. This assignment is designed to help you: 1 ...

Can someone please help me with the following java

can someone please help me with the following java question The input is an N by N matrix of nonnegative integers. Each individual row is a decreasing sequence from left to right. Each individual column is a decreasing s ...

Solving 2nd degree equationsbull write the following java

Solving 2nd degree equations • Write the following Java methods • boolean real-sols(double a, double b, double c): it returns true if the 2nd degree equation ax2 + bx + c has real solutions • double solution1(double a, d ...

Can someone help me please with those question1what is the

Can someone help me please with those question 1:what is the best data type for student id datatime,currency,number,decimal 2:which relationshipis preferable? one to one,one to many,many to many 3:if you add table A's pr ...

Project descriptionwrite a java program to traverse a

Project Description: Write a java program to traverse a directory structure (DirWalker.java) of csv files that contain csv files with customer info. A simple sample in provided in with the sample code but you MUST will r ...

Fundamentals of operating systems and java

Fundamentals of Operating Systems and Java Programming Purpose of the assessment (with ULO Mapping) This assignment assesses the following Unit Learning Outcomes; students should be able to demonstrate their achievements ...

Part a specification - robot simulationpart a

PART A Specification - Robot Simulation PART A Requirements To complete this assignment you will use the supplied eclipse project Robot P1/. It is already set up to execute a simple arm movement loop which you will build ...

Project requirementsfor the problem described in the next

Project requirements For the problem described in the next section, you must do the following: 1. include your student ID at the end of all filenames for all java code files. Three classes have been identified in section ...

Question slideshows or carousels are very popular in

Question : Slideshows (or carousels) are very popular in websites. They allow web developers to display news or images on the website in limited space. In this code challenge, you are required to complete the JavaScript ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As