title: if multiple threads are updating the same variable, what should be done so each thread updates the variable correctly?
body: <p>If multiple threads are updating the same variable, what should I do so each thread updates the variable correctly?</p>
  
  <p>Any help would be greatly appreciated</p>