Use sched_yield() instead of usleep(1)