> > > spinning loops on Mac OS X, so maybe sleep(0) is the same. > > > > Do you know a correct way of doing this on *nix? > > "sched_yield()"? Seems to be POSIX, so I suppose it's available on most > Unices. Yes, and not so recent ('93) that it is risky. At least FreeBSD seems to have it.