> For the complete documentation index, see [llms.txt](https://dailyjournal.gitbook.io/notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dailyjournal.gitbook.io/notes/multi-platform-frameworks/.net/advanced/parallel-programming.md).

# Parallel Programming

{% embed url="<https://learn.microsoft.com/en-us/dotnet/standard/parallel-programming/media/tpl-architecture.png>" %}

## Task Parallel Library

## Parallel LINQ

{% hint style="info" %}
Parallel Extensions

`Parallel.Invoke()` - runs on the UI thread so until the result is fetched UI gets blocked, and if we try to use `Dispatcher.Invoke()` inside the function which tries to create a new UI thread, the application will go in a deadlock state.
{% endhint %}
