Fixed busy wait of mainThread

added yield()