From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3481 invoked by alias); 22 Jun 2005 16:29:50 -0000 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 Received: (qmail 3468 invoked by uid 22791); 22 Jun 2005 16:29:44 -0000 Received: from bay107-f25.bay107.hotmail.com (HELO hotmail.com) (64.4.51.35) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Wed, 22 Jun 2005 16:29:44 +0000 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 22 Jun 2005 09:29:42 -0700 Message-ID: Received: from 64.4.51.220 by by107fd.bay107.hotmail.msn.com with HTTP; Wed, 22 Jun 2005 16:29:42 GMT X-Originating-Email: [guilly_work@hotmail.com] X-Sender: guilly_work@hotmail.com From: "Guilly A" To: ecos-discuss@sources.redhat.com Bcc: Date: Wed, 22 Jun 2005 16:29:00 -0000 Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Subject: [ECOS] Efficient way to wake up a task... X-SW-Source: 2005-06/txt/msg00206.txt.bz2 Hi I need to wake up a task after an interruption handling. I am wondering which is the more efficient way to do that : 1- suspend the task and resume it in the ISR 2- make the task wait forever for a flag and set the flag in the ISR 3- use mailboxes. On pSos, I used an event sending to wake up my task. I heard it was the fastest way and lowest memory cost do do it, compared to mailbox. But I had no evidence about it, I believed it naively. I don't know how is it for eCos. Thank you for your advices. Rq : the task to be waken has the highest priority of my system, and in the ISR I just copy a 256bytes long buffer to a static buffer and send the wake-up signal... _________________________________________________________________ Ne cherchez plus, trouvez ! Avec le nouveau MSN Search. http://search.msn.fr/ -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss