Re: thread rant

From: Kai Henningsen (kaih@khms.westfalen.de)
Date: Sat Sep 02 2000 - 11:55:00 EST


dean-list-linux-kernel@arctic.org (dean gaudet) wrote on 02.09.00 in <Pine.LNX.4.21.0009020243390.13453-100000@twinlark.arctic.org>:

> although you know the most amusing thing to watch a thread programmer try
> to do is to pass data bidirectionally between two sockets.

I'm tempted to say "don't do that, then". I.e., sounds like the wrong
abstraction.

Of course, you may have no choice.

Easy threads rule-of-thumb: if you need to juggle two concurrent jobs in
one thread, you have the wrong abstraction; maybe you need to split your
thread.

> can we be friends and say "everything in moderation including moderation
> itself"? :)

That's always wise.

MfG Kai
-
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 : Thu Sep 07 2000 - 21:00:13 EST