DotNetShoutout - Stories tagged with TPL
4
Shouts

Tpl Dataflow walkthrough - Part 5 - Bnaya Eshet

published 507 days, 11 hours, 12 minutes ago posted by bnayabnaya 509 days, 9 hours, 46 minutes ago
Monday, January 30, 2012 8:42:23 AM GMT Saturday, January 28, 2012 10:07:58 AM GMT
Tpl Dataflow walkthrough - Part 5Tpl Dataflow walkthrough - Part 5 this post is a complete walkthrough of a web crawler sample that was build purely by using Tpl Dataflow. it was built on .NET 4.5 / C# 5 (on a virtual machine using VS 11). I will analyze each part of this sample, both by discussing the Dataflow blocks and the patterns in used. the sample code is available in here (it is a VS 11 project). during the walkthrough you will see the following Tpl Dataflow blocks:TransformBlock Transfor... (more)
category: Architecture | clicked: 24 | 1 comment | | source: blogs.microsoft.co.il
tags: TPL, TDF, ISorceBlock, Transform, Dataflow, ITargerBlock, IDataBlobk, IPropagatorBlock
3
Shouts

async / await, some reasoning - Bnaya Eshet

published 514 days, 19 hours, 41 minutes ago posted by bnayabnaya 518 days, 10 hours, 37 minutes ago
Monday, January 23, 2012 12:13:07 AM GMT Thursday, January 19, 2012 9:17:07 AM GMT
async / await some reasoningasync / await some reasoning this post will try to make some reasoning about the .NET 4.5 / C#5 await keyword. I will begin a quiz. how long will it take to the following method to produce the 42 value?Code SnippetasyncTask (more)
category: Architecture | clicked: 16 | comment | | source: blogs.microsoft.co.il
tags: TPL, Parallel, Async, .NET 4.5, Task, await, C#5
2
Shouts

Using async / await - Bnaya Eshet

published 522 days, 8 hours ago posted by bnayabnaya 522 days, 21 hours, 4 minutes ago
Sunday, January 15, 2012 11:54:38 AM GMT Saturday, January 14, 2012 10:50:22 PM GMT
Using async / awaitUsing async / await this post will discuss parallel disposal. whenever we want to dispose a parallel execution upon completion we can't use the convenient using keyword. for example, the following code may be dispose the command before completion:Very bad Code Snippetusing (var conn = newSqlConnection(CONN_STR))using (var cmd = newSqlCommand("Select * from Employee", conn)) {    conn.Open();    cmd.BeginExecuteReader(ar =>        {int affected = cmd.EndExecuteNonQuery(ar);        ... (more)
category: Architecture | clicked: 14 | comment | | source: blogs.microsoft.co.il
tags: TPL, Parallel, Async, Using, Task, await
3
Shouts

async \ await and Exception Handling - Bnaya Eshet

published 524 days, 12 hours, 31 minutes ago posted by bnayabnaya 525 days, 13 hours, 39 minutes ago
Friday, January 13, 2012 7:23:16 AM GMT Thursday, January 12, 2012 6:15:13 AM GMT
async \ await and Exception Handlingasync \ await and Exception Handling this post will discuss how async / await is handling exceptions. as we mention in previous post, about the async / await concept, await is all about continuation. before .NET 4.5 parallel execution exceptions has to be handle in separate of the synchronic handling. for example: handling ThreadPool execution:Code Snippetvoid Foo(){try    {Console.WriteLine("Synchronic");ThreadPool.QueueUserWorkItem(state =>            {try   ... (more)
category: Architecture | clicked: 10 | comment | | source: blogs.microsoft.co.il
tags: TPL, continue, Async, .NET 4.5, continuation, exception, await, C#5
4
Shouts

TPL - Continuation - Bnaya Eshet

published 539 days, 18 hours, 42 minutes ago posted by bnayabnaya 540 days, 2 hours, 39 minutes ago
Thursday, December 29, 2011 1:12:25 AM GMT Wednesday, December 28, 2011 5:15:27 PM GMT
TPL - ContinuationTPL - Continuation this post will discuss TPL Continuation. TPLcontinuation can chain task into a pipeline. when dealing with dependencies between parallel work units, like [encoding -> compression -> encryption], continuation is the API for scheduling work unit upon completion of other work unit. the general idea is quit similar to the old APM pattern (BeginXxx, EndXxx) callback.basic completion the syntax of continuation:Code SnippetTask tsk = Task.Factory.StartNew(() => {/* d... (more)
category: Architecture | clicked: 9 | 2 comments | | source: blogs.microsoft.co.il
tags: TPL, continuation
3
Shouts

Tpl Dataflow - Part 3 - Bnaya Eshet

published 555 days, 5 hours, 15 minutes ago posted by bnayabnaya 558 days, 11 hours, 12 minutes ago
Tuesday, December 13, 2011 2:39:39 PM GMT Saturday, December 10, 2011 8:42:28 AM GMT
Tpl Dataflow - Part 3Tpl Dataflow - Part 3 the previous post discus the concept ITargetBlock which is the TDFconsumer contract. this post will focus on the source block which is the producer contract. as mention in previous post, sources and targets engage in a protocol for transferring messages between them. Source Block: the source block main responsibility is to produce (or manipulate) data which will be consume by the target. as we learn in previous post the target may consume the data either ... (more)
category: Architecture | clicked: 17 | 1 comment | | source: blogs.microsoft.co.il
tags: TPL, TDF, ISourceBlock, Dataflow, ITargetBlock
2
Shouts

Tpl Dataflow - Part 2 - Bnaya Eshet

posted by bnayabnaya 559 days, 13 hours, 7 minutes ago
Friday, December 09, 2011 6:47:37 AM GMT
Tpl Dataflow - Part 2Tpl Dataflow - Part 2 in this post will focus on one of the TPL Dataflow main contract called target. previous post can be found here. TPL Dataflow is built upon the concept of Producer / Consumer pattern, which represent by 2 interfaces. ISourceBlock (more)
category: Architecture | clicked: 2 | comment | | source: blogs.microsoft.co.il
tags: TPL, ISourceBlock, Dataflow, ITargetBlock
2
Shouts

C#/.NET Little Wonders: TPL Wonders - The Parallel.For() Method

posted by BlackRabbitCoderBlackRabbitCoder 608 days, 18 hours, 45 minutes ago
Friday, October 21, 2011 1:09:31 AM GMT
Previously, I had created some posts about the Task Parallel Library’s Concurrent Collections – which are very efficient collections designed for concurrent use with minimal contention – but in this next series of Little Wonders posts, I’d like to explore the parts of the TPL that can simplify and improve the way you perform parallel programming. For this week, we are going to start looking at the Parallel static class’s, For() static method, which is a quick and easy way to perform parallel processing ... (more)
category: Web Dev | clicked: 5 | comment | | source: blackrabbitcoder.net
tags: .NET, TPL, Little Wonders, Parallel, C#, for, CSharp
2
Shouts

C#/.NET Toolbox: Creating a "Safer" Task Dispose()

posted by BlackRabbitCoderBlackRabbitCoder 622 days, 19 hours, 2 minutes ago
Friday, October 07, 2011 12:52:42 AM GMT
So recently, I’ve been moving some older utility classes logic over to use the excellent .NET Task Parallel Library (TPL). This library contains, at it’s core, a class called Task which allows parallel programming without the need of working directly with threads. During this process, I wrote a few extension methods I found to be useful in dealing with tasks in an easier manner, and thought I’d share them in a few posts. Today's will discuss an extension method to make disposing a task a little bit "sa... (more)
category: Web Dev | clicked: 12 | 2 comments | | source: www.blackrabbitcoder.net
tags: .NET, TPL, C#, Task, ToolBox, CSharp, Dispose
8
Shouts

Parallel Programming in .NET Framework 4: Getting Started - C# Frequently Asked Questions - Alexandra Rusina

published 1111 days, 8 hours, 11 minutes ago posted by iftekharahmedamitiftekharahmedamit 1113 days, 20 hours, 30 minutes ago
Saturday, June 05, 2010 11:43:25 AM GMT Wednesday, June 02, 2010 11:24:36 PM GMT
With this post I want to start a series devoted to the new parallel programming features in .NET Framework 4 and introduce you the Task Parallel Library (TPL). I have to admit that I’m not an expert in multithreading or parallel computing. However, people often ask me about easy introductions and beginner’s samples for new features. And I have an enormous advantage over most newbies in this area – I can ask people who developed this library about what I’m doing wrong and what to do next... (more)
category: Architecture | clicked: 4 | 1 comment | | source: blogs.msdn.com
tags: Parallel Processing, TPL, .NET Framework, Task Parallel Library, C#, Parallel Programming, WPF, C# 4.0, .NET Framework 4.0
4
Shouts

Exploring Event Tracing for Windows (ETW) within Task Parallel Library (TPL) using PerfMonitor « Naveen's Blog

published 1176 days, 7 hours, 34 minutes ago posted by reshmireshmi 1177 days, 16 hours, 37 minutes ago
Thursday, April 01, 2010 12:19:54 PM GMT Wednesday, March 31, 2010 3:16:58 AM GMT
Like I mentioned in my previouspost , Today I am going to exploring TPL ETW traces. Yes, I know we could use the built in VS.NET profiler, but in production environment we don’t have VS.NET and guess what even VS.NET parallel profiler uses only ETW to get those good looking graphs. With the today’s release of source code from BCL, I am going to be using PerfMonitor to parse these traces and dump them out in xml file. TPL uses ‘self-manifests’ (The manifest is dumped as event data) we don’t need a man fi... (more)
category: Architecture | clicked: 2 | comment | | source: bit.ly
tags: TPL, ETW, Debugging, .Net 4.0, PerfMonitor
5
Shouts

.NET Framework 4: A first look at the new features « Mehroz’s Experiments

published 1198 days, 8 hours, 25 minutes ago posted by mehrozmehroz 1199 days, 1 hour, 42 minutes ago
Wednesday, March 10, 2010 11:28:54 AM GMT Tuesday, March 09, 2010 6:12:06 PM GMT
Visual Studio 2010 Release Candidate has been made available a few weeks back. The .NET Framework 4 is arriving with some great new enhancements for all of us, and in this post, I plan to briefly discuss some of those exciting features that caught my eye. Here's the list of the features discussed: Parallel extensions Entity framework 4 Managed Extensibility Framework Silverlight 4 DLR and dynamic keyword Code contracts Optional Parameters ... (more)
category: How To | clicked: 2 | comment | | source: smehrozalam.wordpress.com
tags: .net 4, TPL, dynamic, Code Contracts, dotnet, DLR, Entity Framework, C#, EF4, MEF, Parallelism, Silverlight 4, VS2010