[fpc-pascal] Threading in FPC DOS

Vinzent Hoefler JeLlyFish.software at gmx.net
Wed Jul 12 13:02:46 CEST 2006

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. ;-)


More information about the fpc-pascal mailing list