Asses 2
Asses 2
ASSIGNMENT -2
SOLUTION :
• Why is "matrixtask" using most of the CPU utilization?
The matrix task is more computationally expensive than the
other tasks, and its priority is higher.
• Why must the priority of "communicationtask" increase in
order for it to work properly?
The matrix task is blocking the communication task from
executing due to it having a higher priority, and that it is
computatuinally expensive, so it takes a while to execute.
Therefore, for communication task to run properly, its must
increase priority, so it can pre-empt the matrixtask.
• What happens to the completion time of "matrixtask"
when the priority of "communicationtask" is increased?
The completion time will increase because it will be
preempted by communication task every 200 msec.
• How many seconds is the period of "matrixtask"? (Hint:
look at vApplicationTickHook() to measure it)
we get a period at about 1.7 sec.
OUTPUT :