int64 g_some_global_variable = 1;
// thread 1
int64 a = g_some_global_variable;
// thread2
g_some_global_variable = 10;
thread 1 will generate asm code like this:
movl a(%rip), %eax
I want to know, thread 1 should always get a 1 or a 10, there is never other possibilities? right?