title: Setting Global variables in thread
body: <p>I need to have a string as a global variable. There is a possibility for multiple threads to set the global variable. Should I have to go for mutex for this? Or will OS handle such actions.
  Going for mutex affects the application performance.</p>
  
  <p>I am not concerned about the order of actions happening. I am afraid of the data corruption.
  Could somebody let me know about this.</p>