MSDN Dive – Week 39

Last week we saw the TAP – Task-based Asynchronous Pattern, which is the recommended new approach for asynchronous programming in the Microsoft .NET Framework. This week I want to show you some sophisticated MSDN topics about asynchronous programming in general and the TAP in particular.

Custom Partitioners for PLINQ and TPL – Learn:

  • How data is divided into partitions or chunks when using PLINQ (Parallel LINQ).
  • What static and load balancing partitioners are and how to configure them.
  • How to implement custom partitioners for advanced parallel scenarios.

Task Schedulers – Learn:

  • What TaskSchedulers are and how they relate to the ThreadPool.
  • What nested and child tasks are.
  • What global and local queues are and how tasks are assigned to them.
  • How advantages of data locality are used by local queues.
  • How to bypass the ThreadPool for long-running tasks.

Lambda Expressions in PLINQ and TPL – Learn:

  • How Lambda expressions are used in PLINQ and the TPL.
  • The role of the Func delegate and the Action delegate.
  • How to use the delegates to pass in your custom program logic to parallel operations.

Enjoy the MSDN!

Written by robinsedlaczek

I am studying informatics at TU Berlin and work as project manager at Fairmas Berlin. Further I develop technical solutions in the Microsoft .Net environment.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s