Hi,
We're designing a new system using an RTOS. Everyone on the team has worked with an RTOS before, but none of us has ever designed a system. One thing I'm concerned with is we may end up with too many tasks. I reviewed my papers/magazines and searched the web for half a day and didn't get much info. So, for those of you who've been through this before, I have a couple of basic questions:
1) What are the disadvantages of a lot of tasks (besides inefficient stack usage)? I'm concerned it may exacerbate deadlock, make it harder to debug, create synchronization issues, etc.2) How do you decide when to create a task? We decided to create a "task creation criteria" to aid us. Right now it has the following: a) any defined events in the system (button presses, etc.) should be in a task, b) anything that is going to take a while to complete (i.e. background processing) should be in a task and c) could placing stuff in a task aid in synchronization? (this is currently under debate).
Thanks much for your input!!
Jim