DEV Community

Discussion on: C#, Task.WhenAll vs Parallel.ForEach

Collapse
 
shayanfiroozi profile image
Shayan Firoozi • Edited

I think it's not a good example !

Parallelism should be used on CPU bound senarios not IO bound.

  • Working with http(s) consider as an IO bound.
  • It would be better if you test your code with some encryption or Image Processing which are CPU bound.