Messages in this thread | | | Subject | Re: thread rant | Date | Sat, 2 Sep 2000 11:58:13 +0100 (BST) | From | Alan Cox <> |
| |
> 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/
| |