[fpc-pascal] Threading vs Parallelism ?

Ryan Joseph ryan at thealchemistguild.com
Sat Apr 1 10:05:38 CEST 2017


> On Mar 31, 2017, at 5:32 PM, Michael Schnell <mschnell at lumino.de> wrote:
> 
> Regarding the view of the application (disregarding execution speed) or of the application programmer, there is no difference between real ("Hardware")  and virtual (e.g. threads) parallelism. These dirty basics need to be handled by the software and hardware infrastructure.
> 
> The use of real (e.g. multi CPU) parallelism that the application allows for being divided into multiple parallel "Threads". his fact given Hardware parallelism can speed up the execution, while even virtual parallelism allows for improving the latency of definable parts the application.

I’m not understanding how parallelism could apply to anything besides breaking down a task so that it can run on multiple hardware compute units.

Why would you ever break a task into 100 threads when you could just run it one thread?

Regards,
	Ryan Joseph




More information about the fpc-pascal mailing list