Hi All I have used __sync_lock_test_and_set() routines in gcc 4.1.1 with -march=pentiumpro successfully. Are there equivalent set of routines or any other functions that I can use for spin locks in gcc 3.4.6? Your help will be greatly appreciated. With Regards Vardhan