private static void WorkOnStatic()
{
int localInt, j;
for ( int i = 0; i < 10; i++ )
{
int index = randomNumGen.Next(0, ValueArraySize);
staticInt_1 = ValueArray[index];
Thread.Sleep(index);
localInt = staticInt_1;
for ( j = 0; j < ValueArraySize; j++ )
if ( ValueArray[j] == localInt )
break;
if (j == ValueArraySize )
throw new Exception("WorkOnStatic: Atomicity of Read/Write violated");
}
}
static void MyHandler(object sender, UnhandledExceptionEventArgs args)