Slashdot Mirror


Threads Considered Harmful

LBR9 writes "James Reinders compares native threads with the goto statement so famously denounced 40 years ago by Edsger Dijkstra. Paraphrasing Dijkstra, he says they both 'make a mess of a program,' and then argues in favor of a higher level of abstraction. A couple of people commenting on the post question whether or not we should be even be treading into the 'swamp of parallelism,' echoing the view recently espoused by Donald Knuth."

3 of 266 comments (clear)

  1. I'm All For Getting Rid Of Threads, But... by rsmith-mac · · Score: 3, Informative

    I'm all for getting rid of threads, but what are you going to replace them with? Traditional functional languages may be the most obvious solution, but they're also among the most impractical of solutions. Is there anything else out there that can replace threading needs, without throwing out the book on programming? It seems like what we need hasn't been invented yet.

  2. Web server w/o processes OR threads... by Dr.+Manhattan · · Score: 3, Informative

    Unix's select/poll mechanism avoids all that. See, e.g., here.

    --
    PHEM - party like it's 1997-2003!