Completed exercise 3, 6, 7
[des2015.git] / natanael / ex07 / ExplanationEx07.txt
1 ex07a
2 There are three tasks with the same priority. The one which was queued first in the scheduler, is run first. After the first task is finished, then it will continue to another task in the queue.
3
4 ex07b
5 The three tasks have the same priority. By using time slicing, round-robin policy tries to give fair resource allocation for all these tasks. So, from the output we can see that there is a lot of task-switching.
6
7 ex07c
8 Task 4 which has the highest priority will be run first. Althought task 4 uses round-robin policy it will be run first as it is the highest priority task.
9 After task 4 finishes, it will continue to run task 0, task 1, and task 2 with the round-robin policy