Hi,
I consider something an atomic operation when it can't be interrupted or
anything by another thread, interrupt handler etc.. i.e. the operation will
guaranteed to be executed as a whole.
For instance on motorola 68xxx processors there is a 'bit test and set'
instruction it enables you to make sure a certain part of code is only
executed by one microprocessor at a time. i.e. it returns if the bit is
already set or if it just has been set (i.e. the last indicating the current
mircoprocessor acquired the lock and the other indicating some other micro
already acquired it (and this thread should either wait or do something
else).
Regards, Ron AF Greve
http://informationsuperhighway.eu