From: Steven Haryanto Date: 2001-05-26T00:04:38+09:00 Subject: [ruby-talk:15716] which ones are atomic? Which ones of the below are atomic (so I don't have to use mutex in a threaded program). Is there a reference on this? 1. i += 1 2. i = i+1 3. puts "a really, really long string" 4. a, b, c = d, e, f 5. a, b, c = a+1, b+1, c+1 6. 1.times { |i| a+=i } 7. var = ['a', ['rather','complex'], {'data':'structure'}, 'definition'] Of course, when in doubt, I mutex. Thanks, Steve