Showing archive results for 2008

Aug 7, 2008
Post comments count0
Post likes count0

ParallelWhileNotEmpty

Stephen Toub - MSFT

Parallel Extensions includes the System.Threading.Parallel class, which provides several high-level loop replacement constructs like For and ForEach. In previous blog posts, we've taken a look at implementing other loops, such as for loops with arbitrary initialization, conditional, and update logic, range-based loops, and a parallel while.  T...

.NET Parallel Programming
Aug 5, 2008
Post comments count0
Post likes count0

Waiting for Tasks

Stephen Toub - MSFT

Parallel Extensions makes it easy to wait for Tasks to complete.  Task exposes a Wait method, which can be used trivially: Task t = Task.Create(...); ... t.Wait();Task also exposes several static methods for waiting on an array of tasks, either for all of them to complete or for any of them to complete: Task t1 = Task.Create(...); Task t2 = Ta...

.NET Parallel Programming
Aug 1, 2008
Post comments count0
Post likes count0

Feedback requested: TaskManager shutdown, Fair scheduling

Stephen Toub - MSFT

One of the primary reasons we've released CTPs of Parallel Extensions is to solicit feedback on the design and functionality it provides.  Does it provide all of the APIs you need to get your job done?  Are there scenarios you wished the APIs supported and that you need to work around in klunky ways?  And so forth.  We've receiv...

.NET Parallel Programming
Jul 27, 2008
Post comments count0
Post likes count0

Custom Loop with Arbitrary Initialization, Condition, and Update

Stephen Toub - MSFT

The Parallel.For loop construct provided by Parallel Extensions is focused on providing a parallel alternative to the common sequential pattern of a for loop that iterates over a range of numbers.  However, the for loop construct in a language like C# is not limited just to numbers and iterating over ranges.  It supports arbitrary initial...

.NET Parallel Programming
Jul 25, 2008
Post comments count0
Post likes count0

Silverlight Tips of the Day – Week 3

Web Development Tools Microsoft

3 new Silverlight blogs have been completed for this week. Check them out! Thank you.Mike Snow SDET Lead  Visual Studio Web Tools

ASP.NET
Jul 24, 2008
Post comments count0
Post likes count1

Useful Abstractions Enabled with ContinueWith

Stephen Toub - MSFT

In the June 2008 CTP of Parallel Extensions to the .NET Framework, we introduced the ContinueWith method on both Task and Future<T>.  ContinueWith is, in effect, a callback, very much like events in .NET.  With events, a causal action results in the event being raised, which by default triggers all of the delegates registered with t...

.NET Parallel Programming
Jul 17, 2008
Post comments count0
Post likes count0

Silverlight Tips of the Day – Week 2

Web Development Tools Microsoft

6 new Silverlight tutorials are completed! Thank you.Mike Snow SDET Lead  Visual Studio Web Tools

ASP.NET
Jul 1, 2008
Post comments count0
Post likes count0

Silverlight Tips of the Day

Web Development Tools Microsoft

Interested in learning something new about Silverlight almost every day? I will be posting “Tips of the Day” for Silverlight on my blog at http://silverlight.net/blogs/msnow/default.aspx.For example, over the past few days, I have added the following tips: If you have any suggestions or requests don’t hesitate t...

ASP.NET
Jun 21, 2008
Post comments count0
Post likes count0

Fork/Join parallelism with .NET CountdownEvent

cristina manu

A common asynchronous pattern in code today is the pattern known as fork/join parallelism. This typically manifests by starting n pieces of work and later joining with that work. The existing set of the .NET synchronization primitives does not offer a simple solution for handling this common scenario. It can be achieved, for example, by using a Ma...

.NET Parallel Programming
Jun 18, 2008
Post comments count0
Post likes count0

Faster switch to design view in VS 2008 SP1 RTM

Web Development Tools Microsoft

Some customers discovered that sometimes switch to Design view was very slow. We analyzed submitted reports and tracked the issue down to a code that was discovering available AJAX Extenders and which contols they were applicable to. In order to avoid unnecessary delays we moved discovery of AJAX extenders to a background thread. This made swi...

ASP.NET