title: thread access to variables in use
body: <p>I was wondering, if i have a multi-core processor and i have multiple threads,is it possible that the program will crash if 2 or more threads access a variable at the same time? How can i block temporarily a variable so that simultaneously access is restricted?</p>
  
  <p>Regards,
  Alexandru Badescu</p>