I have background job and every 15s I am making arrount 10000 redis calls 1000 at a time. I put all the tasks in an Array then I do Task.WaitAll(array). The machine have 32 cors. The redis cluster is 3 masters and 3 slaves in sperate vms. If I let it run for 30 minutes this will cause a thread starvation. So changing the "WaitAll" with "WhenAll" will it solve the problem and why?
Asked
Active
Viewed 92 times
2
-
can you show some code example? β Adassko May 17 '20 at 03:19
-
2Itβs my understanding that WaitAll is a blocking method still while WhenAll is Async. β ww2406 May 17 '20 at 03:35
-
1https://stackoverflow.com/questions/6123406/waitall-vs-whenall β ww2406 May 17 '20 at 03:35