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