Re: thread rant

From: Alan Cox (alan@lxorguk.ukuu.org.uk)
Date: Sat Sep 02 2000 - 06:58:13 EDT

  • Next message: Andi Kleen: "Re: Linux 2.2 - BSD/OS 4.1 ARP incompatibility"

    > This is all just curiosity. I've considered trying some thread
    > programming, but if it is as stupid as it sounds, I'd rather
    > learn the "right" way of writing code that would ordinarily be
    > done with threads, etc.. Right now, I'm using fork() all over
    > the place and don't much care how much waste it is... I'd like
    > to though.

    The single thing people forget most is that threads are expensive. Sure use
    one for rendering one for computation, but dont use one per socket on a
    web server.

    If you think of threading as fork() that shares more then you'll probably be
    making sensible use of threading.

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    Please read the FAQ at http://www.tux.org/lkml/



    This archive was generated by hypermail 2b29 : Sat Sep 02 2000 - 07:08:01 EDT