Stories recently tagged with 'threads'

Parallel LINQ (PLINQ) with Visual Studio 2010(leniel.net)

submitted by lenielleniel(489) 2 years, 3 months ago

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. As promised, today I show the performance gains when the same delegate is run in 2 cores (parallel) instead of only 1 core (sequential). In this post you'll also see the new parallel debugging windows that come with Visual Studio 2010: Parallel Stacks and Parallel Tasks. read more...

add a comment |category: |Views: 86

tags: another

Stop Polluting the UI Thread - Use a ThreadBarrier(blog.quantumbitdesigns.com)

submitted by QuantumBitDesignsQuantumBitDesigns(325) 3 years, 8 months ago

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. read more...

add a comment |category: |Views: 465

tags: another

Empty try blocks(blog.somecreativity.com)

submitted by dnksiddnksid(355) 3 years, 10 months ago

The article explains why you might see functions that do nothing in the "try" block. read more...

1 comment |category: |Views: 25

tags: another

Free ebook : Threading in C#(albahari.com)

submitted by gavinjoycegavinjoyce(25.7k) 4 years, 4 months ago

It has been updated since the last time it was posted here. Available in HTML and PDF. read more...

2 comments |category: |Views: 136

tags: another

Anonymous Methods vs Threads(vaultofthoughts.net)

submitted by mikeonmikeon(5200) 4 years, 7 months ago

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. read more...

add a comment |category: |Views: 14

tags: another

Anonymous Methods vs Threads(vaultofthoughts.net)

submitted by mikeonmikeon(5200) 4 years, 7 months ago

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. read more...

add a comment |category: |Views: 14

tags: another

Working With Asynchronous WebRequests(vaultofthoughts.net)

submitted by mikeonmikeon(5200) 4 years, 7 months ago

Do you knowh how to handle multiple asynchronous WebRequests? Do you know why the obvious way doesn't work? read more...

add a comment |category: |Views: 22

tags: another

Creating a simple, reusable Windows Service (template code) - Part II(dotnetzone.gr)

submitted by sotirisfsotirisf(315) 5 years, 1 month ago

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 methods are implemented below: read more...

add a comment |category: |Views: 36

tags: another

Creating a simple, reusable Windows Service (template code) - Part I(dotnetzone.gr)

submitted by sotirisfsotirisf(315) 5 years, 1 month ago

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 point repeatedly over a period of time. By extending the code provided, you can even have multiple threads running at the same time. read more...

add a comment |category: |Views: 351

tags: another