Reply to Walter, > No, but a mutex involves an OS call. Inlining is also easily > prevented. > using atomic ASM ops a (single process) mutex can be implemented with no OS interaction at all.