Re: Inter Thread Coomunication

From: Stefan Richter
Date: Wed Dec 02 2009 - 12:20:42 EST


Mai Daftedar wrote:
> After some googling I learnt that using queues and pipes are expensive
> (effieciency wise) and that I should just pass in the parameters and
> use mutex to protect shared data...
> Can anyone add on to this tradeoff information

The entire point of threads (in contrast to processes) is to share an
address space for convenience or/and performance. If a shared address
space is not really required, separate processes could be used instead
with the huge advantage of memory protection.
--
Stefan Richter
-=====-==--= ==-- ---=-
http://arcgraph.de/sr/
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/