The CPU timing diagram graphed each thread for Lab 4docx

The CPU timing diagram graphed each thread for Lab 4docx -...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Figure : CPU Loading Using Trace Toolkit The CPU timing diagram graphed each thread’s CPU load against a time scale. Same as Lab 1, 2 and 3, the main control loop with the highest priority (100) is at row 3 with period 2ms. On the other hand, for row 0, the thread represents computing the data on the screen. Since it is not as important as running the main loop, it can be seen that the thread has been interrupted by other higher priority threads. Row 11, which is the Null Thread, displays CPU idle time. When there is no load on the CPU, this thread displays a “load.” Row 6 is the data logging loop that has a lower
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: priority of 50 and it runs with a period of 10ms. We can determine the correct thread and match the running code through the running time (Period) from the diagram. The approximate CPU loading can be found by using the portion of one period of CPU time is used to idle in the Null Thread with a period of 2.5ms. This amount is found to be approximately 25% of the total time and thus the loading from all other threads is approximately 75%. Figure : CPU Loading Using Trace Toolkit...
View Full Document

Page1 / 2

The CPU timing diagram graphed each thread for Lab 4docx -...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online