> > modified demo does in fact make Linux switch between threads. I also > > tried the Sleep(0) you mentiond in the Sort Demo. Sleep() didn't do > > the trick, but using the BurnCPU() method from Demo1 did. > > 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. _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal