Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data And Databases

Authors: Jeff Mapua

1st Edition

1978502257, 978-1978502253

More Books

Students also viewed these Databases questions

Question

When is it appropriate to use a root cause analysis

Answered: 1 week ago

Question

How do Data Types perform data validation?

Answered: 1 week ago

Question

How does Referential Integrity work?

Answered: 1 week ago