[cgl_discussion] Question for TEMs/ISVs/OEMs regarding pthread
shemminger at osdl.org
Fri Jan 31 15:23:29 PST 2003
> purpose of the whole thing :-).
> Also, I don't think it's possible to do the userland-only lock on a
> machine that doesn't have compare-and-swap (MIPS, ARM, and old x86s
> don't have it, for instance). I've spent some time thinking about it,
> and I don't have a solution. It will be hard to get the kernel
> maintainers to take something that is not generic.
There is way to do it without atomic read-modify-write it is called
Dekker's Algorithm. Not pretty, and slower but it works.
More information about the cgl_discussion