Solved

.Net 4.5 Threading C#

Posted on 2013-01-07
2
554 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
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 a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

786 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