You can't execute two things simultaneously on SmileBASIC, the only thing you could do is to execute both chuncks as fast as you can. Which means you have to re-think your algoritm.