Solved

.Net 4.5 Threading C#

Posted on 2013-01-07
2
551 Views
Last Modified: 2013-01-07
Hi,

I have just got Visual Studio 2012 so just starting to use the 4.5 framework for the first time. The question I have is on Multithreading. I used the Threadpool when I was working with 3.5 framework.

However just reading on the internet there seems to be more of a focus on Tasks rather than the threadpool. So which one should I be using? Performance wise which is best? Also I have very little multi threading experince.

Thanks,
M
0
Comment
Question by:mcs26
  • 2
2 Comments
 
LVL 42

Accepted Solution

by:
sedgwick earned 500 total points
ID: 38750534
without getting into all the improvements made in 4.5 i strongly suggest checking this great post from code project:

Improved Multi-Threading Support in .NET 4.5

it is recommended to upgrade to 4.5 even if you don't use the new approaches and only for the background thread handling which was greatly improved.

if you wish to get more thorough overview of performance improvements in .NET 4.5 i recommend the following post from msdn:
An Overview of Performance Improvements in .NET 4.5
0
 
LVL 42

Assisted Solution

by:sedgwick
sedgwick earned 500 total points
ID: 38750548
2 main features which deals with threading and parallel tasking are The Task Parallel Library (TPL) and Parallel Linq(PLINQ).

TPL
Another good resource of .net 4.5 Threading and Tasks:
An Overview of .NET Threading and Tasks
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

930 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now