Assignments for CSC 400


Fall, 2004


Assignment 1 (due 9/13)


Assignment 2 (due 9/20)


Assignment 3 (due 9/29)


Assignment 4 (due 10/20)


Assignment 5 (due 10/29)


Assignment 6 (due 11/10)

Create a program that will allow the user to input the execution time and period for up to ten periodic real-time tasks. Then your program should determine if they can be successfully scheduled using Rate Monotonic Scheduling. Note since we are starting all tasks at time 0, you need only check until every task has finished its first period. You should output a message indicating that the tasks can be scheduled successfully, or the first task that fails to meet its deadline.

Note: Rate Monotonic Scheduling is a preemptive algorithm!

Example 1 (successful)
  P1 P2 P3
Ci (time) 20 40 100
Ti (rate) 100 150 350

 

Example 2 (successful)
  P1 P2 P3 P4
Ci (time) 5 20 20 40
Ti (rate) 25 50 100 200

 

Example 3 (P4 misses its first deadline)
  P1 P2 P3 P4
Ci (time) 10 30 35 55
Ti (rate) 60 120 140 200

 

Example 4 (P4 misses its first deadline)
  P1 P2 P3 P4
Ci (time) 18 24 80 70
Ti (rate) 100 150 250 300

 

Example 5 (successful)
  P1 P2 P3 P4 P5 P6
Ci (time) 10 18 22 25 35 50
Ti (rate) 100 120 150 200 250 300

 

Example 6 (P6 misses its first deadline)
  P1 P2 P3 P4 P5 P6
Ci (time) 273 310 348 389 435 491
Ti (rate) 2245 2518 2828 3176 3565 4000

 

Example 7 (successful)
  P1 P2 P3 P4 P5 P6
Ci (time) 20 40 50 60 45 40
Ti (rate) 100 150 350 400 450 800
Example 8 (P5 misses its first deadline)
  P1 P2 P3 P4 P5 P6
Ci (time) 20 40 50 70 45 20
Ti (rate) 100 150 350 400 450 800


Assignment 7 (due 12/8)



400 Class page
My Home Page