C# - How to start multiple tasks and wait for them all to finish
What you are likely looking for is the method Task.WaitAll(task1, task2, task3..);. The method allows you to wait for several tasks to finish, even »
What you are likely looking for is the method Task.WaitAll(task1, task2, task3..);. The method allows you to wait for several tasks to finish, even »
I have not yet found a situation where I needed a thread instead of a Task. Threads are a lower level concept when compared to tasks. »
It is quite easy to start a new thread in C#. All you need is to instantiate a new object of the type Thread and call »
In this post I will show how the lock statement in C# works and what you should look out for when using it. It is well »
I had a discussion a couple of weeks ago about tasks and threads. It occurred to me that I had rarely used threads and mostly used »
I have sometimes found myself - at the end of a long chain of using async/await - calling something that is not using async. Sometimes »
It is quite easy to iterate through each item in a list and wait for the result. All you have to do is use Parallel.ForEach( »
I recently look for an easy way to start a new task in C#. Many of the examples that I found required several lines of code. »
I recently had to hunt down a bug. We were experiencing a piece of code running very slowly. The executed code should take way less than »