Comment by tm-guimaraes

3 years ago

So instead we would have ridiculous amount of problems with cache and scheduling. I bet most of the time sequential cose would be “faster”, due to the parallel overheads, the cache misses, and the scheduling that obviously can’t fit every loop scenario.

And this is assuming that the code in the loop is thread safe, otherwise you will summon every concurrency bug on the planet.