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

Graeme Geldenhuys graemeg.lists at gmail.com
Thu Sep 28 16:55:48 CEST 2006


ok, I see hundreds of a's  - press b and quite a bit later I see
hundreds of b's.

Do you have lazarus?  I can then post the Sort Demo to show that one as well.

Regards,
  - Graeme -


On 28/09/06, Marco van de Voort <marcov at stack.nl> wrote:
> > The test project /fcl/tests/threads.pp
>
> I see random alteration of a and b here.
>
> > The threads.pp test project in fcl, shown a lot of a's on the screen
> > and after a while, starts displaying b's on the screen.  Looking at
> > the source, I gather the a's and b's are supposed to be mixed as each
> > thread gets processor time.
>
> If you touch a key, only a's will be displayed. This is the programs
> behaviour.
>
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>


-- 
There's no place like 127.0.0.1



More information about the fpc-pascal mailing list