sched_yield() rather than nanosleep()