Zack Yang
Jul 28, 2021

--

Thanks for your suggestion. SemaphoreSlim is a better solution to accelerate the process, because it can enable exactly five tasks in parallel. As for my solution, sometimes there will be less than five tasks in parallel. But SemaphoreSlim would make the code difficult to follow, because it will require the use of multi-threaded classes or methods.

--

--

Zack Yang
Zack Yang

No responses yet