[fpc-pascal] Single threaded application on multicore CPU

Graeme Geldenhuys mailinglists at geldenhuys.co.uk
Wed Jun 22 15:42:30 CEST 2016

On 2016-06-22 14:01, Mattias Gaertner wrote:
> I don't doubt that it is swapping. I would like to know why it is
> swapping.

Indeed a good question, and something I've wondered about before. My
answer is I don't know. :)

 When I did Google it before (some years ago), the most frequent answer
I got was that the scheduler is more intelligent than the computer user,
so trust what it is doing.

The other frequent answer I got was to do with logical cores versus
physical cores (ie: hyperthreading). Apparently the physical cores get
more priority over the logical ones, and the logical ones only have
about 30% of the processing power of physical ones. Once again the
scheduler load balances the processes for overall good performance and
power consumption.

How true all this is - I honestly don't know. But from what I remember,
various website listed these answers.


More information about the fpc-pascal mailing list