Need to call a function every X(say 5) seconds and the below code does it . But its blocking the execution of code. As i want it to work like setitimer , where i can say call a function every 5 sec and do something else. ThanksNeed to call a function every X(say 5) seconds