private static void WriterThreadEntry() { for (int i = 0; i < INCREMENT_PER_THREAD; ++i) { Interlocked.Increment(ref sharedState); } }