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

Marco van de Voort marcov at stack.nl
Thu Sep 28 16:44:08 CEST 2006


> 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.
 



More information about the fpc-pascal mailing list