write a code that Implements polling server algorithm for scheduling periodic jo
ID: 3868758 • Letter: W
Question
write a code that Implements polling server algorithm for scheduling periodic jobs with aperioidic jobs using c++ langauge
the code must do the following
• should get periodic jobs attributes at time zero(computation times and periods), while aperiodic jobs will arrive arbitrarily (i.e random).
• should accept any number of jobs.
•should provide features to startstop simulation, select server attributes, select algorithm,.....
• should generate a report at the end of execution that calculate all necessary metrics for evaluation(i.e response time, and lateness for all jobs.
Explanation / Answer
Algorithm: DM_guarantee ()
{ for (each ){
I = 0;
do {
R = I + Ci;
if (R > Di) return(UNSCHEDULABLE);
I = j=1,…,(i-1)R/Tj Cj;
} while (I + Ci > R);
}
return(SCHEDULABLE);
}
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.