ok, its a little more complicated than the question.
class A { static int needsToBeThreadSafe = 0; public static void M1() { needsToBeThreadSa
How About:
public static void M1() { Interlocked.Exchange( ref needsToBeThreadSafe, RandomNumber() ); } public static void M2() { print( Interlocked.Read( ref needsToBeThreadSafe ) ); }