Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755453AbZLBRU2 (ORCPT ); Wed, 2 Dec 2009 12:20:28 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755236AbZLBRUZ (ORCPT ); Wed, 2 Dec 2009 12:20:25 -0500 Received: from hp3.statik.tu-cottbus.de ([141.43.120.68]:54727 "EHLO hp3.statik.tu-cottbus.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755345AbZLBRUY (ORCPT ); Wed, 2 Dec 2009 12:20:24 -0500 Message-ID: <4B16A1B1.9010101@s5r6.in-berlin.de> Date: Wed, 02 Dec 2009 18:19:45 +0100 From: Stefan Richter User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.1.23) Gecko/20090825 SeaMonkey/1.1.18 MIME-Version: 1.0 To: Mai Daftedar CC: linux-kernel@vger.kernel.org, clemens@ladisch.de Subject: Re: Inter Thread Coomunication References: <2cd4ff050912020417r27b52a89v4e676c7d4ab74ad4@mail.gmail.com> In-Reply-To: <2cd4ff050912020417r27b52a89v4e676c7d4ab74ad4@mail.gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 821 Lines: 19 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/