[fpc-pascal] Threading in FPC DOS

Vinzent Hoefler JeLlyFish.software at gmx.net
Wed Jul 12 13:17:54 CEST 2006


On Wednesday 12 July 2006 11:10, Marco van de Voort wrote:
> > > > 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.

Footer of the man-page here says:

|Linux 1.3.81                1996-04-10             SCHED_YIELD(2)


Vinzent.




More information about the fpc-pascal mailing list