Question: Implement static scheduler algorithm in C on Linux machine. The static scheduler should execute the following task set T1 (4, 1.0), T2 (5, 1.8), T3

 Implement static scheduler algorithm in C on Linux machine. The static

Implement static scheduler algorithm in C on Linux machine. The static scheduler should execute the following task set T1 (4, 1.0), T2 (5, 1.8), T3 (20, 1.0), T4-(20, 2.0) Requirements: 1. Must use fork and exec) to create your task. 2. Use timer_create to ensure the task are executed at the correct scheduling points which has been decided in the table. 3. Measure the execution time by means of the clock_gettime) function. Be creative to show the output of the program to show that your Task are running in correctly (time wise, period and execution time) Below are the pseudocode and the precomputed table of your static schedule. The pseudocode mention timer interrupt. TU)Input: stored schedule (iT T, Task SCHEDULER: for k-0, 1,1 set the next decision point0 and table entry k 0: set the timer to expire at do forever: 3.8 accept timer imterupt; if an aperiodic job is executing, preempt the job current task T-T) increment i by l compute the next table entry , mod " set the timer to expire at [i / n] * H+1r if the current task Tis I 9.8 108 let the job at the head of the aperiodic queue execute 13.8 T 148 17 else let the task Texecute; sleep; 18 end do End SCHEDULER Implement static scheduler algorithm in C on Linux machine. The static scheduler should execute the following task set T1 (4, 1.0), T2 (5, 1.8), T3 (20, 1.0), T4-(20, 2.0) Requirements: 1. Must use fork and exec) to create your task. 2. Use timer_create to ensure the task are executed at the correct scheduling points which has been decided in the table. 3. Measure the execution time by means of the clock_gettime) function. Be creative to show the output of the program to show that your Task are running in correctly (time wise, period and execution time) Below are the pseudocode and the precomputed table of your static schedule. The pseudocode mention timer interrupt. TU)Input: stored schedule (iT T, Task SCHEDULER: for k-0, 1,1 set the next decision point0 and table entry k 0: set the timer to expire at do forever: 3.8 accept timer imterupt; if an aperiodic job is executing, preempt the job current task T-T) increment i by l compute the next table entry , mod " set the timer to expire at [i / n] * H+1r if the current task Tis I 9.8 108 let the job at the head of the aperiodic queue execute 13.8 T 148 17 else let the task Texecute; sleep; 18 end do End SCHEDULER

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!