title: Update the value of a variable every 5 mins
body: <p>I have a variable whose value needs to be updated every 5 mins depending on a condition. I am aware that I need to start a different thread. But how can I do that?</p>