On 15/11/06, Derek Smithies <[EMAIL PROTECTED]> wrote:
My personal view that when I hear developers say "threads are bad" is that
the developer is actually saying
a) gdb is a poor tool for debugging threads
b) threads are hard to debug under linux
c) the developer has never been forced to learn and undertand threads, so
(out of laziness perhaps) never wants to use threads.
Let me, if I may, modify point (b) above.
(b) Threads are hard to debug.
Or maybe even:
(b) Threads are hard.
Threads make programs hard for programmers to reason about.
A recent paper in IEEE computer (May 2006) titled "The problenm with
Threads" says this in the abstract:For concurrent programming to
become mainstream, we must discard threads as a programming model.
Nondeterminism should be judiciously and carefully introduced where
needed, and it should be explicit in programs.
I'm not really taking sides yet. I'll watch and see how it pans out.
Cheers,
Carl.