Solved

.Net 4.5 Threading C#

Posted on 2013-01-07
2
562 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
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…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

726 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