andyf Posted December 6, 2011 Share Posted December 6, 2011 I have a running motion program that is looping and reading values from local memory. If another gpascii connection updates one of those variables, will the operation be atomic? I want to be sure the running program will not read only part of the value being written by the other connection. Link to comment Share on other sites More sharing options...
Sina.Sattari Posted December 6, 2011 Share Posted December 6, 2011 Any read and write to memory, including double (64-bit), in Power PMAC is done in hardware and you are guaranteed to read/write the whole word, and not the partial data. Link to comment Share on other sites More sharing options...
curtwilson Posted December 6, 2011 Share Posted December 6, 2011 The only caveat is that if you access a 64-bit floating-point variable using two 32-bit operations in your code, this is not guaranteed to be atomic. And yes, someone found this out the hard way... Link to comment Share on other sites More sharing options...
Recommended Posts