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

Graeme Geldenhuys graemeg.lists at gmail.com
Thu Sep 28 17:00:08 CEST 2006


Attached is the Sort Demo - for incase you have Lazarus.

Graeme.


On 28/09/06, Graeme Geldenhuys <graemeg.lists at gmail.com> wrote:
> 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
>


-- 
There's no place like 127.0.0.1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Threads_Sort_Demo.tar.gz
Type: application/x-gzip
Size: 4035 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20060928/2e6dbab4/attachment.bin>


More information about the fpc-pascal mailing list