[Gllug] Atomic increment/decrement
Nix
nix at esperi.demon.co.uk
Wed Aug 7 22:43:17 UTC 2002
On Wed, 7 Aug 2002, Jonathan Dye stated:
> It's not supported by the c lanugage but it is somtimes a system call that
> is implemented in the kernel so that you can have atomicity (is that a
> word?) across threads/processes/processors. It would probably be done using
> atomic cpu instructions (or with kernel locks).
I'd hope it's an atomic instruction inlined into the code that uses it:
a system call would be orders of magnitude too slow for this, I'd have
thought.
--
`There's something satisfying about killing JWZ over and over again.'
-- 1i, personal communication
--
Gllug mailing list - Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug
More information about the GLLUG
mailing list