RE: spinlock

David Schwartz (davids@webmaster.com)
Wed, 1 Dec 1999 16:53:10 -0800


> > using a single instruction. I recall that while it is desirable to use
> > single instructions, it is not required.
>
> Certainly not by the standard.

I would suspect that the people who felt the use of single instructions was
desirable were under the misconception that such instructions are atomic on
SMP. However, single instructions are atomic with respect to shared memory
and interrupts on a UP machine.

DS

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/