Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Assume we have five tasks, T1, T2, T3, T4, and T5 with priorities: 3, 9, 5, 2, a

ID: 3590946 • Letter: A

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 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.

Explanation / Answer

7.

All answers that are correct regarding the execution of task 3:

option b and c