[M3devel] atomic operations in cm3

Jay K jay.krell at cornell.edu
Sat Feb 25 03:24:14 CET 2012


I checked in a test case. Can you look at it?Yes it is possible.  I forget the details, but some operations do require locks on some targets.There is an interface to determine if the target supports lock-free operation.  As long as you are only dealing in INTEGER or REFANY, I think you are ok across the board.  Some 32bit targets don't support 64bit atomtic, like Powerpc.SPARC32 and x86 have supported 64bit atomic operations for a long time.    Linux and Solaris kernels don't run on 32bit SPARC any longer, so 64bit instructions are available in 32bit usermode.HPPA is problematic for all atomics I recall. The instruction set support is very limited.Linux has good support somehow, something dependent on the kernel, but I don't know what gcc/HP-UX/OpenBSD/NetBSD story is.  Look in m3-libs/m3core/src/atomic/m3makefile for a record of what I found.  And ask Bing.   - Jay
 > From: dragisha at m3w.org
> Date: Fri, 24 Feb 2012 21:27:13 +0100
> To: m3devel at elegosoft.com
> Subject: [M3devel] atomic operations in cm3
> 
> I cannot find any hint on how to make use of <subject>. What would I like is to communicate with worker threads without LOCK… Possible?
> 
> TIA,
> dd
> 
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20120225/d6bf49af/attachment-0002.html>


More information about the M3devel mailing list