Added ex09b
[des2015.git] / natanael / ex02 / explanation.txt
1 DES group members:
2 Natanael Adityasatria s4417992
3 Mart Lubbers s4109503
4
5 2a
6 The output describes the first task is the task that is first executed by the
7 syntax rt_task_start. So the task order is ordered from the source code's order
8 (in this case: inside loop, the lowest counter will be run first)
9
10 2b
11 The output describes that we can pass the integer argument that belongs to the
12 task. In addition to the task name (string), the task can also has an integer
13 value.
14
15 2c
16 There is no differences in the output with the exercise 2b.
17 The order is the same as in exercise 2b.
18 From the source code, this is because we put each of tasks in a loop. So the
19 first task created and the first task started in the loop will be run first
20 time. For the next loop, it will create and start the next task. So it is like
21 the matter of the code order not the task priority.
22
23 2d
24 It is because we use Sleep of 1 second then the loop(while) will be run every
25 one second. All tasks have the same priority, but each of tasks has different
26 periods. The first task that has period of 1 will be run every seconds while
27 the task that has period of 2 will be run once in two seconds. In addition, the
28 task that has period of 3 will be run once in three seconds.