First page Back Continue Last page Graphics
Creating and Deleting Tasks
Some RTOS will allow you to create and destroy tasks during execution.
This should be avoided.
- create/destroy RTOS routines are typically expensive
- It can be difficult to destroy tasks without leaving things in a mess.
Create all the tasks at startup. Tasks that want to be “Destroyed” should simply block and never wake up.