Why is it impossible? If there is no mutex / lock, then thread2 can update shared_var as thread1 is doing something else right?
shared_var