From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16337 invoked by alias); 23 May 2006 06:22:05 -0000 Received: (qmail 16315 invoked by uid 22791); 23 May 2006 06:22:05 -0000 X-Spam-Check-By: sourceware.org Received: from javad.com (HELO javad.com) (216.122.176.236) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 23 May 2006 06:22:02 +0000 Received: from osv ([87.236.81.130]) by javad.com (8.11.6/8.11.0) with ESMTP id k4N6Lxp74260 for ; Tue, 23 May 2006 06:22:00 GMT (envelope-from s.organov@javad.com) Received: from osv by osv with local (Exim 4.60) (envelope-from ) id 1FiQHC-0000GD-3i for ecos-discuss@ecos.sourceware.org; Tue, 23 May 2006 10:21:54 +0400 From: Sergei Organov To: ecos-discuss@ecos.sourceware.org References: <5A8A17126B73AC4C83968F6C4505E3C5042D0FA1@JO-EX01.JENOPTIK.NET> <69dd805e0605222248w4cd066aiebb0dbb14355877b@mail.gmail.com> Date: Tue, 23 May 2006 06:22:00 -0000 In-Reply-To: <69dd805e0605222248w4cd066aiebb0dbb14355877b@mail.gmail.com> (Fabian Scheler's message of "Tue, 23 May 2006 07:48:08 +0200") Message-ID: <87r72lb6rh.fsf@javad.com> User-Agent: Gnus/5.110004 (No Gnus v0.4) XEmacs/21.4.18 (linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: Re: [ECOS] Re: correct handling of condition variables from DSRs X-SW-Source: 2006-05/txt/msg00181.txt.bz2 "Fabian Scheler" writes: > Hello, > >> This is pure overhead in the case of DSR-to-thread synchronization. > > so, why don't you use a semaphore? Did I say I don't? Though semaphore is a poor man replacement for an optimized primitive with exact semantics required for particular purpose that is currently missing in eCos. Please notice that semaphore's internal counter is pure overhead as well, though admittedly it's less than those of mutex having both state variable and a wait queue. -- Sergei. -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss