28.03.2015 Views

Task Management and Lab 5

Task Management and Lab 5

Task Management and Lab 5

SHOW MORE
SHOW LESS

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

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!