Page 1 of 1

OS_Replace() vs. OSStartTask and OSStopTask()

PostPosted: Mon Feb 12, 2007 5:07 am
by samuel
Using Salvo v4.0.0. I've read with OS_Replace() it is valid for 2 tasks to have the same TCBP. Is the same true with OSStartTask() and OSStopTask(). Can 2 tasks that never run at the same time have the same TCBP and be started and stopped via these calls? The description of the functions doesn't explicitly say...

Re: OS_Replace() vs. OSStartTask and OSStopTask()

PostPosted: Tue Feb 13, 2007 9:13 am
by aek
Yes, certainly.

Each instance of a task is tied to the associated tcb.

IOW, you can only have as many defined tasks at once as you have tcbs.

Switching two tasks back and forth using a single tcb is fine as long as you re-create each task on the same tcb.

------------------