Global
int x, y;
Thread 1 Thread 2
x = 0; x = 100;
x = 0; y = 100;
repeat(100) repeat(100)
cout << map[x] << endl; cout << x << endl;
cout << map[x] << endl; cout << map[y] << endl;