On Wednesday 12 July 2006 10:57, Tomas Hajny wrote: > I certainly don't know a general solution for *nix. However, even old > "single-task" DOS provides such a function and it's a great help that > can be provided by programmer to scheduler in the underlying OS, so > *nix systems should provide such function too, right? If they don't, > you probably don't have anything better than sleep(0) anyway.
Bad thing with Sleep(0) on those systems is that it does about the same as coding "{null};", with the disadvantage of needing infinitely more code and being infinitely slower. ;-) Vinzent. _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal