|
|
|
|
|
by solutionyogi
3785 days ago
|
|
That looks better. However, I am really not sure what you are trying to achieve here. You didn't specify any scheduler, it means your tasks will use a default scheduler and that scheduler uses threadpool [1] and it will never create 1M threads. And as there is no actual work performed in the Task, things will run reasonably fast. I am having hard time understanding what you are trying to test here. I am worried that .NET code is not really testing what you think it is. [1] https://msdn.microsoft.com/en-us/library/dd997402(v=vs.110).... |
|
Maybe you mean we should schedule something which has a complete event loop? That would be a lot more fair wrt the Akka version, but the Go version does not create any threads either.