[fpc-pascal] Threading in FPC DOS

Jonas Maebe jonas.maebe at elis.ugent.be
Wed Jul 12 11:29:25 CEST 2006


On 12 jul 2006, at 11:25, Marco van de Voort wrote:

> I doubt it. Note that it also probably needs enhancing of the
> threadinterface with a giveuptimeslice functionality, something for  
> which
> now sleep(0) is abused.

sleep(0) is quite bad, because it may not necessarily give up any  
timeslice. At least very short nanosleeps seem to be implemented as  
spinning loops on Mac OS X, so maybe sleep(0) is the same.


Jonas



More information about the fpc-pascal mailing list