From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23751 invoked by alias); 13 Apr 2011 00:36:34 -0000 Received: (qmail 23742 invoked by uid 22791); 13 Apr 2011 00:36:33 -0000 X-SWARE-Spam-Status: No, hits=-0.5 required=5.0 tests=AWL,BAYES_00,DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,T_RP_MATCHES_RCVD,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from sam.nabble.com (HELO sam.nabble.com) (216.139.236.26) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 13 Apr 2011 00:36:28 +0000 Received: from isper.nabble.com ([192.168.236.156]) by sam.nabble.com with esmtp (Exim 4.69) (envelope-from ) id 1Q9o4K-0004bZ-HX for ecos-devel@ecos.sourceware.org; Tue, 12 Apr 2011 17:36:28 -0700 Message-ID: <31383910.post@talk.nabble.com> Date: Wed, 13 Apr 2011 00:36:00 -0000 From: moktar_bouain To: ecos-devel@ecos.sourceware.org Subject: Re: I have a problem with the priority of ecos In-Reply-To: <4DA4E806.8000004@mlbassoc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit References: <31383032.post@talk.nabble.com> <31383526.post@talk.nabble.com> <4DA4E806.8000004@mlbassoc.com> X-IsSubscribed: yes Mailing-List: contact ecos-devel-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: ecos-devel-owner@ecos.sourceware.org X-SW-Source: 2011-04/txt/msg00004.txt.bz2 On 04/12/2011 05:02 PM, moktar_bouain wrote: > > Hi Thomas, > I use bitmap scheduling with 31 level for priority(by default). > I tried with diag_printf() but the same thing. >What else is configured in your system (what template did you build from)? >My guess is that there is another thread already at priority 10. >I still don't know why you think that the threads should yield to each >other after each printf(). I used eCos for Leon3 (architecture SPARC) with the simulator Tsim. I created this simple program that uses 2 threads. The problem if there a difference of 10 between two levels of priority, the program it works(5 and 15 or 10 and 20). But if less than 10 it does not work -- View this message in context: http://old.nabble.com/I-have-a-problem--with--the-priority-of-ecos-tp31383032p31383910.html Sent from the Sourceware - ecos-devel mailing list archive at Nabble.com.