nix::sched
pub fn sched_yield() -> Result<()>
Explicitly yield the processor to other threads.
Further reading