Hi all,
what's the atomic operations such as test-and-set and
compare-and-swap? is there any C function for this or in UNIX?
I want to use it in my C progrom. Another problem, how to use lock for concurency control?Thanks
what's the atomic operations such as test-and-set and
compare-and-swap? is there any C function for this or in UNIX?
I want to use it in my C progrom. Another problem, how to use lock for concurency control?Thanks
sample:
test-and-set ----------InterlockedCompareExchange