Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

.Net 4.5 Threading C#

Posted on 2013-01-07
2
Medium Priority
?
588 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:
Meir Rivkin earned 2000 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:Meir Rivkin
Meir Rivkin earned 2000 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

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

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…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
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 video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…

604 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