When I create such an array of such tasks:
var taskArray = new Task<double>[] { Task.Factory.StartNew(() => new Random().NextDouble()), Task.Factory.StartNew(() => new Random().NextDouble()), Task.Factory.StartNew(() => new Random().NextDouble()) };
Will it create 3 threads for sure, or is it up to the CLR to create threads on its own?
So, if I execute this in a web request, does this mean that at least 4 threads will be created to properly service the request? (web request + 1 for each task)
loyalflow
source share