1. More likely to have data sharing between tasks: increased likelihood of shared-data
problems.
2. More need fo semaphores to protect shared data: increased overhead and possible semaphore bugs.
3. More need for messages, queues, pipes: increased overhead and likelihood of bugs.
4. More memory needed for stacks,message buffers.
5. More CPU time spent switching tasks
6. More calls to RTOS,increasing system overhead.
Recommendation:
“other things being equal, use as few tasks as you can get away with; add more tasks to your design only for clear reasons.”
No comments:
Post a Comment