[fpc-pascal] Single threaded application on multicore CPU

Graeme Geldenhuys mailinglists at geldenhuys.co.uk
Wed Jun 22 10:48:47 CEST 2016


On 2016-06-22 08:02, LacaK wrote:
> I know that in theory CPU can switch single thread between cores

As Torsten said, that is exactly what happens. It is not “just in
theory”, it happens all the time. I see that constantly on my i7 CPU
with long running processes.

As for the cost of moving it between cores. I have no clue, but I would
imagine that switching between cores in a single CPU is not that
expensive (the cores are so close together and tightly integrated),
compared to switching between physical CPU’s. I don’t have a multi CPU
system to give actual observations, but that’s my theory. ;-)

Regards,
  Graeme

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp



More information about the fpc-pascal mailing list