??? 03/21/05 16:32 Read: times Msg Score: +1 +1 Informative |
#90145 - Unreal Time Explosions Responding to: ???'s previous message |
Erik Malund said:
I can hardly count the software "explosions" I have seen due to insufficient attention to "atomic".
I am sure this would be one answer on "Family Feud" to "what are the causes of intermittent software failures?. I am sure you will be pleased to know that all pre-emptive URTOSs only make this situation worse. Any regular task code can be pre-emptively suspended and another task code run. If these two tasks share data, they too can suffer the shared data problem if the operations are not atomic as well as the ones you get sharing data with an ISR. To combat this they had to invent semaphores, signals, mailboxes and the like to manage the problem. Not only that, this type of shared data problem is the direct cause of priority inversion which is what nearly buggered up the Mars Rover. Ian P.S. The show is called 'Family Fortunes' in the UK. |