Measuring Real-Time Performance Of An RTOS - Express Logic
Measuring Real-Time Performance Of An RTOS - Express Logic
Measuring Real-Time Performance Of An RTOS - Express Logic
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Interrupt Handling<br />
• Threads use software interrupts to trigger preemption<br />
• Reporting thread “prints” results every 30 seconds<br />
– Thread1 suspends<br />
– Thread5 forces interrupt<br />
– Interrupt handler resumes Thread1<br />
– Print thread is top priority, runs every 30 seconds<br />
Thread0<br />
Print<br />
Sleep(10)<br />
Loop<br />
Interrupt Handler<br />
Count<br />
Resume Thread_1<br />
Thread1<br />
Count<br />
Suspend<br />
Loop<br />
Thread5<br />
Count<br />
*TRAP*<br />
Loop<br />
12