Tagged Questions
16
votes
2answers
453 views
Why does shared state degrade performance?
I've been working under the share-nothing principle of concurrent programming. Essentially, all my worker threads have immutable read-only copies of the same state which is never shared between them ...
12
votes
4answers
1k views
Is It “Wrong”/Bad Design To Put A Thread/Background Worker In A Class?
I have a class that will read from Excel (C# and .Net 4) and in that class I have a background worker that will load the data from Excel while the UI can remain responsive. My question is as follows: ...
12
votes
3answers
3k views
How will C# 5 async support help UI thread synchronization issues?
I heard somewhere that C# 5 async-await will be so awesome that you will not have to worry about doing this:
if (InvokeRequired)
{
BeginInvoke(...);
return;
}
// do your stuff here
It looks ...
11
votes
8answers
501 views
Can anyone suggest a project for me write to help me understand threading
I am currently a C# developer with a pretty shaky understanding of threading.
Both of these links have been suggested in other posts:
http://www.yoda.arachsys.com/csharp/threads/
...
10
votes
6answers
1k views
Solutions to C# 5 async re-entrancy
So, something's been bugging me about the new async support in C# 5:
The user presses a button which starts an async operation. The call returns immediately and the message pump starts running again ...
7
votes
3answers
7k views
Multi-threading in C# .NET Windows Service
I am writing a Windows Service (using C# .NET 3.5 VS2008) and my requirement is:
When the Windows Service start - it performs record check operation (in Database) @ every 30 second interval (I have ...
6
votes
3answers
736 views
BackgroundWorker vs. Async/Await
I am new to C# development and wish to create a more responsive UI. In my preliminary research, I have seen two methods for achieving this:
Multi-threading in conjunction with the BackgroundWorker ...
5
votes
3answers
304 views
Naming Convention for Dedicated Thread Locking objects
A relatively minor question, but I haven't been able to find official documentation or even blog opinion/discussions on it.
Simply put: when I have a private object whose sole purpose is to serve for ...
5
votes
2answers
593 views
Is there such a thing as too much asynchronous code?
I am at the moment messing around with clients and servers in C# winforms and I'm trying to implement it all asynchronously. However, I'm beginning to wonder, should I use asynchronous code for ...
4
votes
1answer
427 views
Need to process 2 million 100k messages per second and route them to a particular event, delegate or multicast delegate
I need to process 2 million messages per second (perhaps in a scale out configuration) and route each message to a N delegates or multicast delegates.
Question
How should I structure my application ...
4
votes
2answers
1k views
Looking for a distributed locking pattern
I need to come up with a custom recursive object locking mechanism\pattern for a distributed system in C#. Essentially, I have a multi-node system. Each node has exclusive write permissions over ...
4
votes
1answer
312 views
Reading and conditionally updating N rows, where N > 100,000 for DNA Sequence processing
I have a proof of concept application that uses Azure tables to associate DNA sequences to "something".
Table 1 is the master table. It uniquely lists every DNA sequence. The PK is a load balanced ...
3
votes
4answers
590 views
Difference between Atomic Operation and Thread Safety?
From the discussion I've seen it seems that atomic operation and thread safety are the same thing, but a lot of people say that they're different. Can anyone tell me the difference if there is one?
3
votes
2answers
200 views
I have data that sends in “bursts” of 100 records with a significant delay. How do I structure my classes for multithreading?
My datasource sends information in 100 batches of 100 records with a delay of 1 to 3 seconds between batches.
I would like to start processing data as soon as it's received, but I'm not sure how to ...
3
votes
1answer
206 views
What are the relative merits for implementing an Erlang-style “Continuation” pattern in C#
What are the relative merits (or demerits) for implementing an Erlang-style "Continuation" pattern in C#. I'm working on a project that has a large number of Lowest priority threads and I'm wondering ...