Question
Assume we have five tasks, T1, T2, T3, T4, and T5 with priorities: 3, 9, 5, 2, and 3 respectively. (Priority is on a scale
Assume we have five tasks, T1, T2, T3, T4, and T5 with priorities: 3, 9, 5, 2, and 3 respectively. (Priority is on a scale of 1 10 with 1 being the highest and 10 the lowest). Assume these 5 tasks are ready for execution at: 20 sec, 15 sec, 15 sec, 45 sec and 50 sec respectively after the processor starts. Further assume the total execution times of the tasks respectively are 30, 15, 20, 25 and 20 seconds each. Assuming a time slice value of 5 seconds, and preemptive priority based scheduling with round robin time slicing answer the following questions:
7. Select all answers that are correct regarding the execution of task 3: A) Task 3 starts execution at t= 95 secs and stops execution at t= 115 secs due to completion B) Task 3 starts execution at t= 95 secs and stops execution at t= 115 secs due to getting preempted by task 2 C) Task 3 starts executing at t = 15 sec and stops its execution at T= 35 sec due to task completion. D) Task 3 starts executing at t = 15 sec and stops its execution 5 seconds later as it gets preempted by task 1.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started