By tag: threads
0
kicks
Parallel LINQ (PLINQ) with Visual Studio 2010
On the last day of May I wrote about how to calculate prime numbers with LINQ in C#. To close that post I said that I’d use the primeNumbers delegate to evaluate PLINQ (Parallel LINQ) and measure the performance gains when the same calculation is done in parallel instead of in a sequential fashion. ...
0
kicks
Stop Polluting the UI Thread - Use a ThreadBarrier
A ThreadBarrier is a technique for simplifying the interaction between the UI and a worker thread. No longer do UI Controls need to check InvokeRequired and do the posting of events from a worker thread.
0
kicks
Empty try blocks
The article explains why you might see functions that do nothing in the "try" block.
0
kicks
Free ebook : Threading in C#
It has been updated since the last time it was posted here. Available in HTML and PDF.
0
kicks
Anonymous Methods vs Threads
What happens when you combine anonymous methods and threads - a things you need to be aware or you will encounter a strange behavior that will be hard to explain.
0
kicks
Working With Asynchronous WebRequests
Do you knowh how to handle multiple asynchronous WebRequests? Do you know why the obvious way doesn't work?
0
kicks
Creating a simple, reusable Windows Service (template code) - Part I
In this article, we'll see a way to create a simple Windows Service that can be reusable in that it can be used as the basis for any repeated operation that we would like to transform to a Windows Service.In other words, we can create our own assembly and then have the Windows Service call its entry...
0
kicks
Creating a simple, reusable Windows Service (template code) - Part II
In part I, we examined how we can extend the Service Control methods by adding methods for all states of the Windows service in addition to the two methods provided by the designer. As you may remember, each of those methods called our own private Service Control method. Our private Service Control ...