??? 03/21/05 13:46 Read: times |
#90106 - atomic explosions Responding to: ???'s previous message |
And it is a surprisingly common problem that gets little mention.
Little mention, and, unfortunately even less attention. 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?. The most popular "atomic error" is to write an int/short in the ISR and read it in the main without disabling ints around that read. This, in C, does, of course, look atomic. Erik "Family Feud" is a gameshow where the host say "Give me the most popular answers to ..." |