Welcome to MSDN Blogs Sign in | Join | Help

News

  • These postings are provided "AS IS" with no warranties and confer no rights. All code and tools presented are done so under the Microsoft Public License.

Browse by Tags

All Tags » .NET 4.0   (RSS)
What’s new in Beta 2 for the Task Parallel Library? (Part 2/3)
Related posts: What's new in Beta 2 for the Task Parallel Library (1/3) What's new in Beta 2 for the Task Parallel Library (3/3) Last week, we talked about how TPL adopted a new, better cancellation model. Today, we’ll cover a change that makes Tasks Read More...
What’s new in Beta 2 for the Task Parallel Library? (Part 1/3)
Related posts: What's new in Beta 2 for the Task Parallel Library? (Part 2/3) What's new in Beta 2 for the Task Parallel Library? (Part 3/3) Visual Studio 2010 and .NET 4 Beta 2 is here! In terms of completeness and readiness for production coding, Beta Read More...
.NET 4 Beta 2 is here!
The .NET Framework 4 Beta 2 is now available! MSDN Subscribers can download it today, and it will be generally available for download on Wednesday.  More information is available at http://msdn.microsoft.com/en-us/vstudio/dd582936.aspx .  Additionally, Read More...
Parallel Computing Presentations in Michigan, Ohio, Kentucky, and Tennessee
In a week, I’m going to be traveling through Michigan, Ohio, Kentucky, and Tennessee, speaking about parallel computing, Visual Studio 2010, and .NET 4, primarily at corporations during the day and at user groups in the evenings. If you’re in the area Read More...
Parallelized Map and Filter Operations
Common operations like map and filter are available in parallelized form through PLINQ, though the names differ.  A map can be achieved with PLINQ’s Select operator, and a filter with PLINQ’s Where operator. For example, I could implement a ParallelMap Read More...
TaskScheduler.FromCurrentSynchronizationContext
The Task abstractions in .NET 4 run on instances of the TaskScheduler class.  Two implementations of TaskScheduler ship as part of the .NET Framework 4.  The first is the default scheduler, which is integrated with the .NET 4 ThreadPool and Read More...
The meaning of TaskStatus
Every System.Threading.Tasks.Task instance goes through a lifecycle, and it only makes this journey once.  To provide insight into where in that lifecycle a given Task is, the Task class provides an instance Status property.  That property returns Read More...
Parallel Extensions and I/O
In this post, we’ll investigate some ways that Parallel Extensions can be used to introduce parallelism and asynchrony to I/O scenarios. Here’s a simple scenario. I want to retrieve data from a number of web resources. static string[] Resources = new Read More...
TaskCreationOptions.PreferFairness
One of the ways in which the Task Parallel Library achieves good performance is through “work-stealing”.  Work-stealing is supported in the .NET 4 ThreadPool for access through the Task Parallel Library and its default scheduler.  This manifests Read More...
Asynchronous methods, C# iterators, and Tasks
More and more, developers are realizing the significant scalability advantages that asynchronous programming can provide, especially as it relates to I/O. Consider an application that needs to copy data from one stream to another stream, such as is being Read More...
Parallel For Loops over Non-Integral Types
In a previous post, it was demonstrated how for loops with very small loop bodies could be parallelized by creating an iterator over ranges, and then using Parallel.ForEach over those ranges. A similar technique can be used to write parallel loops over Read More...
Cancellation in Parallel Extensions
One of the great features that crosses all of Parallel Extensions types is a consistent approach to cancellation (see http://blogs.msdn.com/pfxteam/archive/2009/05/22/9635790.aspx ). In this post we explore some of the ways cancellation is used in Parallel Read More...
Tasks and the Event-based Asynchronous Pattern
As has been discussed previously, one of the new features in the Task Parallel Library is TaskCompletionSource<TResult> , which enables the creation of a Task<TResult> that represents any other asynchronous operation.  There are a wide Read More...
How PLINQ processes an IEnumerable<T> on multiple cores
As Ed Essey explained in Partitioning in PLINQ , partitioning is an important step in PLINQ execution. Partitioning splits up a single input sequence into multiple sequences that can be processed in parallel. This post further explains chunk partitioning, Read More...
Tasks and the APM Pattern
The Asynchronous Programming Model (APM) in the .NET Framework has been around since .NET 1.0 and is the most common pattern for asynchrony in the Framework.  Even if you’re not familiar with the name, you’re likely familiar with the core of the Read More...
More Posts Next page »
Page view tracker