[fpc-pascal] Threads executing in sequence instead of parallel

Micha Nelissen micha at neli.hopto.org
Sat Sep 30 13:12:10 CEST 2006


Marco van de Voort wrote:
>> Ok, maybe Sleep(0) in sysutils has to use the sched_yield syscall for
>> linux. This may be a feature request to be reported in bug tracker IMHO.
> 
> Ugly. Better define a procedure TryYieldTimeSlice() or so. No need to follow
> Windowisms with archaic reasons.

Yes agree, thought of this just after sending the email. The
implementation might/will call Sleep(0) on the windows platform.

Micha



More information about the fpc-pascal mailing list