Task Management and Lab 5
Task Management and Lab 5
Task Management and Lab 5
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Note about the TCB (<strong>Task</strong> Control Block)<br />
When a task is created, it is assigned a <strong>Task</strong> Control Block<br />
(OS_TCB) . This TCB is used to maintain the state of a task<br />
when it is preempted.<br />
The TCB resides in RAM<br />
Note about the opt argument<br />
In order to perform stack checking on a task, the<br />
OS_TASK_OPT_STK_CHK flag in the opt argument must<br />
be set<br />
Also the stack must contain zeros, then use the function<br />
OS_TASK_OPT_STK_CLR