Hi All Are there any atomic operations available. I am looking for something equivalent to atomic_swap_uchar in Solaris. I tried to use __sync_val_compare_and_swap() but get errors when the program tries to load it in runtime. Perhaps I need to link or download some libraries. Any idea which? Thanks in advance Vardhan