Multi-threading related questions including technique, structure, and safety issues.
10
votes
9answers
851 views
What lessons did you learn from a project which nearly/actually failed due to bad multithreading?
What lessons did you learn from a project which nearly/actually failed due to bad multithreading?
Sometimes, the framework imposes a certain threading model that makes things an order of magnitude ...
1
vote
2answers
167 views
Descriptive Locking and Concurrency
I'm thinking about how one would go about designing a descriptive concurrency model for an OOP language that helps simplify concurrency scenarios for programmers (no easy task, concurrency is hard).
...
0
votes
5answers
379 views
Examples of concurrent iterating scenarios needed
I'm trying to wrap my head around different concurrency solutions to several threads iterating over the same collection but I'm having difficulty coming up with good realistic (but preferably easy to ...
11
votes
5answers
675 views
Why don't xUnit frameworks allow tests to run in parallel?
Do you know of any xUnit framework that allows to run tests in parallel, to make use of multiple cores in today's machine? I don't...
If none (or so few) of them does it, maybe there is a reason... ...
21
votes
20answers
2k views
How would you explain multi threading to a seven year old kid?
If you have to explain the concept of multi-threading to a seven year old kid how would you do it? I recently got this question in an interview. I came up with a story using jobs (the task to be done) ...
1
vote
6answers
419 views
Structuring multi-threaded programs
Are there any canonical sources for learning how to structure multi-threaded programs? Even with all the concurrency utility classes that Java provides I'm having a hard time properly structuring ...
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: ...
2
votes
2answers
532 views
What are the so-called “levels” of understanding multithreading?
I seem to remember reading somewhere some list of 4 "levels" of understanding multithreading. This may have been in a formal publication, or it may have been in an extremely informal context (even ...
12
votes
6answers
1k views
What do you look for when debugging deadlocks?
Recently I've been working on projects that heavily use threading. I think that I'm OK at designing them; use stateless design as much as possible, lock access to all resources that more than one ...
0
votes
1answer
46 views
Where to put profile test?
I have an application with multiple threads that may be run on different hardware. To assist with tuning on different hardware I would like to create a "profiler" that can automatically run a fixed ...
0
votes
6answers
303 views
What is the point where multitreaded programming becomes slower than the problem?
I currently try to design an engine at the core level. However, I cannot decide if input thread should be mixed with a rendering thread or any other thread. Would making it an extra thread with all ...
1
vote
2answers
536 views
Multithreaded UI desktop application issues
I am involved into development a rich UI project: desktop windows application. Application uses asynchronous invocations and in its turn it should be ready to process external messages (events). The ...
4
votes
6answers
420 views
What threading pratice is good 90% of the time?
Since my SO thread was closed i guess i can ask it here.
What practice or practices are good 90% of the time when working with threading with multiple cores? Personally all i have done was share ...
5
votes
1answer
207 views
Need to re-build an application - how?
For our main system, we have a small monitor application that sits outside our network and periodically tries to log in to verify the system still works. We have a problem with the monitor though in ...
15
votes
6answers
2k views
How would you practice concurrency and multi-threading?
I've been reading about concurrency, multi-threading, and how "the free lunch is over". But I've not yet had the possibility to use MT in my job.
I'm thus looking for suggestions about what I ...
11
votes
7answers
720 views
What false ideas are there that puts people off using threads? [closed]
Implementing threading in a program is hard, yes, however why is it that some people will not implement them even when there is an obvious need for it.
An example: Program has to load a dataset from ...
45
votes
19answers
5k views
Servicing background tasks on a large site
We're dealing with an interesting problem on StackOverflow.
We've got a whole bunch of little "needs to be done soon-ish" tasks. An example is updating "Related Questions" lists. What we've done in ...
20
votes
7answers
2k views
How do I unit test multi-threaded code?
Are there ways to unit test your multi-threaded code for race conditions and deadlocks?
To see if they are performing the way they should be...