Solved

.Net 4.5 Threading C#

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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
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 this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

762 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

21 Experts available now in Live!

Get 1:1 Help Now