The Task Parallel Library Sampler – Part 7: Using Parallel.For effectively

Part One: Starting with MVVMPart Two: The MVVM solution structure and basic frameworkPart Three: Base ClassesPart 4: Sampler View, View Model and ModelPart 5: Running and working with the TPL samplesPart 6: Parallel.For Sample In the last post we discussed where using a Parallel.For isn’t effective. The answer is fairly straightforward, Parallel.For (and by extension […]

.

Read more

The Task Parallel Library Sampler – Part 6: Parallel.For Sample

Part One: Starting with MVVMPart Two: The MVVM solution structure and basic frameworkPart Three: Base ClassesPart 4: Sampler View, View Model and ModelPart 5: Running and working with the TPL samples In the solution directory Models, you will find the LineSample and LineParallelSample models. These are fairly straight forward samples. LineSample.Run() We start a stop […]

.

Read more

The Task Parallel Library Sampler – Part 4: Sampler View, View Model and Model

Part One: Starting with MVVMPart Two: The MVVM solution structure and basic frameworkPart Three: Base Classes I want to go over the main view (SamplerView), view model (SamplerViewModel) and model (Sampler) classes next. I’ve gone over the ItemsControl that populates the TPL samples but I wanted to cover the other MVVM aspects as well as […]

.

Read more

The Task Parallel Library Sampler – Part Three: Base Classes

Part One: Starting with MVVMPart Two: The MVVM solution structure and basic framework Let’s take a look at SampleView, SampleViewModel and the base Sample class all of our models extend from so we can get a better understanding of how this works. In the first set of samples included with the code the only controls […]

.

Read more

The Task Parallel Library Sampler – Part One: Starting with MVVM

About a year ago I did a session here at work going over the Task Parallel Library (TPL), it’s benefits and where it works and doesn’t work. To illustrate a lot of the TPL I wrote a simple WPF application with standard code-behind that contained a ton of code samples that demonstrated the concepts I […]

.

Read more

Fun with strings

Next up is a few fun facts with strings. My software development path went from C/C++ -> Java -> C#. While in Java strings always felt awkward. It felt strange to have to use .charAt to iterate over a char array. It also felt odd to have to use .equals on a string. I know […]

.

Read more

pass by reference value, pass by value, ref and out

I want to start this post by defining what a reference type is and what a value type is. We’ll start with reference types. These are all objects that are not value types, pretty easy, huh? 🙂 So what are value types? Per the documentation they are numeric types (like int, decimal, float and other […]

.

Read more

Lazy and the Singleton Pattern

There are a lot of threading issues that are fairly obvious which careful and conservative use of locks will solve. Conservative use is import because if we use locks too liberally we run the risk of turning all the work we’ve done to multi-thread back into a single thread scenario. The subtle issues are the […]

.

Read more
FormatException

928 East Plymouth Drive Asbury Park, NJ 07712