Question: Write a java program for the following scheduling, Real-Time Periodic: The input file Real-Time Periodic Scheduling shoud look like this: RP,2,100 A,0,10,20 B,0,25,50 The first

Write a java program for the following scheduling,

Real-Time Periodic:

The input file Real-Time Periodic Scheduling shoud look like this:

RP,2,100

A,0,10,20

B,0,25,50

The first line specifies the type of scheduling (RP for real-time periodic scheduling), the number of recurring tasks to be scheduled (2), and the lenght of the simulation in time units (100).The remaining lines specify the characteristics of one recurring task per line in the following format:

Task,Arrival Time,Execution Time,Ending Deadline

The output for the input file shown above should look like this:

FP:

A(1):0->10

B(1):10->20

A(2):20->30

B(1):30->40

A(3):40->50

B(1):Missed

B(2):50->60

A(4):60->70

B(2):70->80

A(5):80->90

B(2):90->95

EDCD:

A(1):0->10

B(1):10->20

A(2):20->30

B(1):30->45

A(3):45->55

B(2):55->60

A(4):60->70

B(2):70->90

A(5):90->100

For each of the policies listed in the Introduction output the abbreviation, then a line for each change in actively running task. The first line from the FP section above:

A(1):0->10 indicates that first instance of process A runs from time 0 to time 10. Note - You should indicate any processes that miss their deadlines as shown in the output above.

Note that the tasks should be listed in order of precedence for fixed priority scheduling. For the example above task A would have priority, followed by task B. If other tasks were specified, they would have precedence indicated by their order in the input file. So, for the following input file:

RP,4,100

C,0,20,30

A,0,10,20

B,0,25,50

X,0,25,75

the order of precedence for fixed priority scheduling would be C, A, B, X.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!