Top "Task-parallel-library" questions

The Task Parallel Library is part of the .NET Framework since .NET 4. It is a set of APIs to enable developers to program asynchronous applications.

Starting Tasks In foreach Loop Uses Value of Last Item

I am making a first attempt at playing with the new Tasks, but something is happening that I don't understand. …

c# multithreading task-parallel-library
Flattening of AggregateExceptions for Processing

I'm running into a few issues where I call flatten on an AggregateException, but inside there is still ANOTHER AggregateException! …

c# exception task-parallel-library aggregateexception
Max Degree of Parallelism for AsParallel()

While using Parallel.ForEach we have the option to define the Parallel options and set the Max Degree of Parallelism …

c# .net task-parallel-library parallel.foreach plinq
Difference between the TPL & async/await (Thread handling)

Trying to understanding the difference between the TPL & async/await when it comes to thread creation. I believe the …

multithreading task-parallel-library async-await c#-5.0
Can I use the task parallel library in a .Net 3.5 project?

I heard that the Task Parallel Library can be used in a .Net 3.5 project. Is this correct, and if yes, …

.net .net-3.5 parallel-processing task-parallel-library
Trigger an action to start after X milliseconds

I'm developing a Xamarin Forms mobile app, which has a page containing a SearchBar, a ListView, and Map control. The …

c# mvvm task-parallel-library portable-class-library xamarin.forms
Should i use ThreadPools or Task Parallel Library for IO-bound operations

In one of my projects that's kinda an aggregator, I parse feeds, podcasts and so from the web. If I …

c# multithreading task-parallel-library threadpool parallel-extensions
Is it safe to put TryDequeue in a while loop?

I have not used concurrent queue before. Is it OK to use TryDequeue as below, in a while loop? Could …

c# task-parallel-library concurrent-queue
how do I call my theme preprocess function for a specific field?

i'm on Drupal 7 and i have aspecific tpl.php file for a content field_image: "field--field_image.tpl.php". I …

drupal drupal-7 task-parallel-library
ConcurrentDictionary<> performance at a single thread misunderstanding?

Related brief info: AFAIK , The concurrent stack, queue, and bag classes are implemented internally with linked lists. And I know …

c# .net-4.0 task-parallel-library concurrentdictionary