Atomic functions often serve purposes in mutexes and SMP. You want to
be able to lock a mutex in one cycle (at least few enough cycles
guaranteed to be executed before another process is scheduled). If you
try to lock a mutex without using atomic functions, then two processes
might try to loc
Eirik Nygaard wrote:
Hi...
I am just wondering what the atomic_* functions in machine/atmoic.h does.
I have read the assembly code and more or less understood it, but I still
don't see the need for it. So if anyone would enlighten me that would be
great.
Think about parallel threads of execution
2 matches
Mail list logo