About 74,600 results
Open links in new tab
  1. c# - Executing tasks in parallel - Stack Overflow

    Dec 20, 2015 · c# .net asynchronous async-await task-parallel-library edited Jun 4, 2018 at 10:40 Jeankowkow 864 14 35

  2. c# - Parallel.ForEach vs Task.Run and Task.WhenAll - Stack Overflow

    Oct 1, 2013 · However, there is a disadvantage to use Task.Run in a loop- With Parallel.ForEach, there is a Partitioner which gets created to avoid making more tasks than necessary. …

  3. Difference between the TPL & async/await (Thread handling)

    Apr 11, 2023 · Trying to understanding the difference between the TPL & async / await when it comes to thread creation. I believe the TPL (TaskFactory.StartNew) works similar to …

  4. c# - Should i use ThreadPools or Task Parallel Library for IO-bound ...

    Mar 7, 2011 · Should i use ThreadPools or Task Parallel Library for IO-bound operations Asked 14 years, 9 months ago Modified 9 years ago Viewed 27k times

  5. How to limit the maximum number of parallel tasks in C#

    Apr 12, 2016 · The Task Parallel Library (TPL) might be good at automatically limiting the tasks based on your local resources. But when you are processing data remotely via RPC, it's …

  6. c# - Best way to limit the number of active Tasks running via the ...

    Jun 21, 2012 · Best way to limit the number of active Tasks running via the Parallel Task Library Asked 13 years, 5 months ago Modified 9 years, 3 months ago Viewed 45k times

  7. Run two async tasks in parallel and collect results in .NET 4.5

    Sep 10, 2012 · I've been trying for a while to get something I thought would be simple working with .NET 4.5 I want to fire off two long running tasks at same time and collect the results in in …

  8. c# - Equivalent of Task Parallel Library in Java - Stack Overflow

    Nov 7, 2010 · I guess there is no equivalent of task parallel libraries (of .NET 4.0) in Java. Is that true? What are the improvements that this feature of .NET offer that Java concurrency doesn't.

  9. c# - What is the use for Task.FromResult<TResult>? - Stack Overflow

    In C# and TPL (Task Parallel Library), the Task class represents an ongoing work that produces a value of type T. I'd like to know what is the need for the Task.FromResult method?

  10. c# - .NET Task Parallel Library - Stack Overflow

    Apr 5, 2012 · The producer task produces items of type T to be processed by other tasks. They are carried over to the other task using objects that implement ITargetBlock'. Every time the …