0% found this document useful (0 votes)
75 views

Answers Assignment2 PDF

The document discusses the CPU utilization of different tasks in an embedded system. It notes that the "matrixtask" uses most of the CPU due to its high priority of 3. Increasing the priority of the "communicationtask" is necessary for it to work properly as "matrixtask" will not preempt other tasks otherwise. However, increasing the priority of "communicationtask" does not affect the completion time of "matrixtask", only the slot in which it is executed. The period of "matrixtask" is about 1.15 seconds according to its tick hook function.

Uploaded by

babarirfanali
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
75 views

Answers Assignment2 PDF

The document discusses the CPU utilization of different tasks in an embedded system. It notes that the "matrixtask" uses most of the CPU due to its high priority of 3. Increasing the priority of the "communicationtask" is necessary for it to work properly as "matrixtask" will not preempt other tasks otherwise. However, increasing the priority of "communicationtask" does not affect the completion time of "matrixtask", only the slot in which it is executed. The period of "matrixtask" is about 1.15 seconds according to its tick hook function.

Uploaded by

babarirfanali
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Answers:

 Why is "matrixtask" using most of the CPU utilization?

It is due to the highest priority (3). In this “for” loop instruction is taking too much time in
execution.
 Why must the priority of "communicationtask" increase in order for it to work properly

Because it takes too much CPU time and "matrixtask" will no preempt task or job and continues
to work efficiently.

 What happens to the completion time of "matrixtask" when the priority of


"communicationtask" is increased?

There is no any difference recorded. Slot or place is changing when "matrixtask" is executed.

 How many seconds is the period of "matrixtask"? (Hint: look at vApplicationTickHook() to


measure it)

About 1.15s

You might also like