Re: [fpc-pascal] CPU affinity of TThread descendants

2009-01-24 Thread David W Noon
On Tue, 2009-01-20 at 21:20 +, David W Noon wrote: [snip] > I have noticed one thing that might shed a little light on the topic: > whenever I use a pipe for the output and I allow the pipe to stall with > a full buffer, after execution is resumed the program sometimes restarts > on the other

Re: [fpc-pascal] CPU affinity of TThread descendants

2009-01-20 Thread David W Noon
On Tue, 2009-01-20 at 11:34 +0100, Vinzent Höfler wrote: > Original-Nachricht > > Datum: Tue, 20 Jan 2009 09:07:54 +0100 (CET) > > Von: Michael Van Canneyt [snip] > > No CPU affinity is imposed as far as I know; > > Under Linux, this is not possible, at least I've never heard

Re: [fpc-pascal] CPU affinity of TThread descendants

2009-01-20 Thread Marco van de Voort
In our previous episode, "Vinzent H?fler" said: > > > [I.e., I want all my threads to be runnable by any CPU inside the box.] > > > > No CPU affinity is imposed as far as I know; > > Under Linux, this is not possible, at least I've never heard of such a > > call. > > sched_set_affinity() > sched

Re: [fpc-pascal] CPU affinity of TThread descendants

2009-01-20 Thread Vinzent Höfler
Original-Nachricht > Datum: Tue, 20 Jan 2009 09:07:54 +0100 (CET) > Von: Michael Van Canneyt > An: FPC-Pascal users discussions > Betreff: Re: [fpc-pascal] CPU affinity of TThread descendants > > > On Mon, 19 Jan 2009, David W Noon wrote: > > >

Re: [fpc-pascal] CPU affinity of TThread descendants

2009-01-20 Thread Michael Van Canneyt
On Mon, 19 Jan 2009, David W Noon wrote: > Hi, > > I am running FPC 2.3.1 under Linux 2.6.26 on a twin CPU AMD Athlon MP > system. > > Whenever I instantiate multiple descendants of the TThread class, they > all seem to run on the same CPU, which is the same CPU as the parent > thread is runni

[fpc-pascal] CPU affinity of TThread descendants

2009-01-19 Thread David W Noon
Hi, I am running FPC 2.3.1 under Linux 2.6.26 on a twin CPU AMD Athlon MP system. Whenever I instantiate multiple descendants of the TThread class, they all seem to run on the same CPU, which is the same CPU as the parent thread is running on. With 21 threads in the program, the system monitor sh