[ug-bosug] How to use CAS Instruction (or) atomic Function in C programs.

Rama Krishna ramaakrishnaa at gmail.com
Sun Mar 12 18:54:21 PST 2006


Hi,
For nonblocking implementation of stacks and queues we actually required the use of CAS (Compare and Swap instruction)instruction in the C program.From google search and wikipedia http://publib16.boulder.ibm.com/pseries/en_US/libs/ktechrf1/compare_and_swap.htm)  i came to know that it a atomic function and is available in #include<sys/atomic_op.h> header. When i used this header file in the C program and try to compile it is showing no such header file is there. Actually we want to know which libraries to include to use CAS instruction. Can any one who know how to use CAS instruction in solaris 10 (using gcc compiler) ,please inform us.

Rama
--
This message posted from opensolaris.org
_______________________________________________
ug-bosug mailing list
List-Unsubscribe: mailto:ug-bosug-unsubscribe at opensolaris.org
List-Owner: mailto:ug-bosug-owner at opensolaris.org
List-Archives: http://www.opensolaris.org/jive/forum.jspa?forumID=54



More information about the ug-discuss mailing list