??? 07/09/10 13:25 Read: times Msg Score: +1 +1 Good Answer/Helpful |
#177188 - All multi-tasking with real-time requiremens suffer waste Responding to: ???'s previous message |
It is similar to all RT problems. Even when you have an RTOS, your problem is to write a program that can use as small processor as possible while still guaranteeing worst-case performance. The seldom happening worst-case scenarios often require you to buy a processor where most of the time is wasted doing nothing.
Having fixed time slices just means that every time slice has a hard wost-case time to get the work done. Using a generic RTOS, background tasks can play with spare processing capacity but hard-to-test and hard-to-prove peak loads means you may have to select a processor that has way more time available for background tasks than you have a need for. With a round-robin solution, you can often be creating with interrupt handlers to create "virtual" background tasks. Especially if interrupts are allowed to nest so the low-prio interrupt doesn't have to end before a critical interrupt may pick up serial data or control an output or whatever is needed. |