Tagged Questions
2
votes
4answers
440 views
When creating a library for a simple program, what must I do to protect others from its lack of thread safety?
When creating a library for a simple program, is it more cost effective to make it thread safe or is there a way to detect the program's use in a multithreaded program and ASSERT() or otherwise ...
3
votes
1answer
121 views
Do you have to ban atomics to get good tool support for race detectors?
It seems that Helgrind treats atomics the same way as normal read/write operations. So, using atomics will result in lots of false positives.
I don't know exactly how ThreadSanitizer deals with ...
4
votes
5answers
312 views
What is the minumum code/operations to have in a separate thread?
I understand that threading is needed to get the maximum performance out of today's multicore processors but starting a thread is rather costly so you can't put every single calculation that can be ...
33
votes
7answers
2k views
Are there deprecated practices for multithread and multiprocessor programming that I should no longer use?
In the early days of FORTRAN and BASIC, essentially all programs were written with GOTO statements. The result was spaghetti code and the solution was structured programming.
Similarly, pointers can ...