Category Archives: Talk Examples

Blog posts that have example code from talks, presentations or conference sessions.

Aberdeen Developers – Introduction to Parallelisation

Examples Here are all the examples from Thursday evening’s introductory talk on Parallelisation at the Aberdeen Developers User Group. Starting tasks Parallel.Invokeexample Parallel.Forexample Parallel.ForEachexample Basic PLINQexample Tasks within Tasks example Data Management Independent Object Graphsexample ConcurrentBagexample ConcurrentDictionary example Stopping Tasks … Continue reading

Posted in Community, Parallelisation Talk Examples, Parallelization Talk Examples, Talk Examples | Leave a comment

DDD Belfast Parallelisation Talk

Examples Here are all the examples from Saturday’s introductory talk on Parallelisation at DDD Belfast. Starting tasks Parallel.Invoke example Parallel.For example Parallel.ForEach example Basic PLINQ example Tasks within Tasks example Data Management Independent Object Graphs example ConcurrentBag example ConcurrentDictionary example … Continue reading

Posted in Parallelisation Talk Examples, Parallelization Talk Examples | Tagged , , , | Leave a comment

SQL Server User Group: SQL Injection Attacks

Examples The examples were run against a copy of the Adventure Works database. Basic Demo (ASP.NET MVC / C# / Visual Studio 2010) Second Order Demo (WinForms / C’# / Visual Studio 2010) Required Tables For the Second Order Demo … Continue reading

Posted in Community, SQL Injection Attack Talk, Talk Examples | Tagged | Leave a comment

DDD South West Parallelisation Talk Overview

Examples Here are all the examples from Saturday’s introductory talk on Parallelisation at DDD South West 2011. Starting tasks Parallel.Invoke example Parallel.For example Parallel.ForEach example Basic PLINQ example Tasks within Tasks example Data Management Independent Object Graphs example ConcurrentBag example … Continue reading

Posted in Community, Parallelisation Talk Examples, Parallelization Talk Examples, Talk Examples | Tagged , , , , | Leave a comment

Parallelisation Talk examples – Cancelling Tasks

This example showed what happens when tasks are cancelled. In this example, some tasks will be able to run to completion, others will be cancelled and other won’t even get a chance to start because the cancellation token was signalled … Continue reading

Posted in Community, Parallelisation Talk Examples, Parallelization Talk Examples, Talk Examples | Tagged , , , , , , , , | 1 Comment

DDD Scotland Parallelisation Talk Overview

Follow Up I was asked a question during the talk I wasn’t immediately able to answer which I’ve now found the definite answer. What happens to parallel tasks running in the background when the application exits? Examples Here are all … Continue reading

Posted in Community, Parallelisation Talk Examples, Parallelization Talk Examples, Talk Examples | Tagged , , , | 2 Comments

Scottish Developers Parallelisation Talk Overview

Here are all the examples from this evening’s introductory talk on Parallelisation at Scottish Developers. Starting tasks Parallel.Invoke example Parallel.For example Parallel.ForEach example Basic PLINQ example Tasks within Tasks example Data Management Independent Object Graphs example ConcurrentBag example ConcurrentDictionary example … Continue reading

Posted in Community, Parallelisation Talk Examples, Parallelization Talk Examples, Talk Examples | Tagged , | 2 Comments

Parallelisation Talk Example – Aggregate Exceptions

The two code examples here show what happens when exceptions are thrown within tasks that are not handled within the task. In each case the task that has the error throws an exception. In the first example, only one task … Continue reading

Posted in Parallelisation Talk Examples, Parallelization Talk Examples, Talk Examples | Tagged , , , , | 1 Comment

Parallelisation talk example – Independent Object Graphs

Parallelised code works best when data is not shared. This example shows a simple piece of parallel code where each task operates independently on its own object graph without dependencies on other objects outside its own graph. Each iteration of … Continue reading

Posted in Parallelisation Talk Examples, Parallelization Talk Examples, Talk Examples | Tagged , , , , | 1 Comment

Prallelisation Talk Example – Tasks within Tasks

In this example I’m showing the launching of further tasks within an existing task. The Main method launches a single task (of course, it would likely be many tasks in a real system) which is implemented by MainTask and then … Continue reading

Posted in Parallelisation Talk Examples, Parallelization Talk Examples, Talk Examples | Tagged , , , , , | 3 Comments