title: FreeRTOS locks and tasks
body: <p>When should I use locks using freertos on something like cortex-m3? It seems to be clear using multicore systems but what about single core?</p>
  
  <p>For example I have two tasks. In first I increment variable named <code>counter</code>. Second task saves current value of that variable when some event occurs. Should I use locks here? May first task corrupt value which second task is saving? </p>