From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25405 invoked by alias); 19 May 2008 13:18:34 -0000 Received: (qmail 25396 invoked by uid 22791); 19 May 2008 13:18:33 -0000 X-Spam-Check-By: sourceware.org Received: from londo.lunn.ch (HELO londo.lunn.ch) (80.238.139.98) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 19 May 2008 13:18:11 +0000 Received: from lunn by londo.lunn.ch with local (Exim 3.36 #1 (Debian)) id 1Jy5Fb-0004fS-00; Mon, 19 May 2008 15:18:03 +0200 Date: Mon, 19 May 2008 13:18:00 -0000 From: Andrew Lunn To: ariga masahiro Cc: ecos-discuss@ecos.sourceware.org Message-ID: <20080519131803.GA16046@lunn.ch> Mail-Followup-To: ariga masahiro , ecos-discuss@ecos.sourceware.org References: <001001c85189$461611c0$1c0110ac@ariga> <4782BE28.8030706@mlbassoc.com> <000601c8750f$5ffb19b0$1c0110ac@ariga> <001001c87522$98475a50$1c0110ac@ariga> <000c01c8b72c$95df1bd0$1c0110ac@ariga> <20080516125053.GA27629@lunn.ch> <001901c8b971$a14202c0$1c0110ac@ariga> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <001901c8b971$a14202c0$1c0110ac@ariga> User-Agent: Mutt/1.5.17+20080114 (2008-01-14) X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: Re: [ECOS] When or on what condition does "deschedule" happen? X-SW-Source: 2008-05/txt/msg00063.txt.bz2 > My question is last part of Deschedule when ThreadC resumes execution. > > Am I correct in assuming that among your conditions, only two conditions > should be fullfiled to make it possible > for ThreadC to resume execution ? > 1.When the thread blocks.(How does scheduler recognise this ?) Blocking calls are part of the OS and the scheduler knows about them. > 2.When a thread exits. > > If ThreadA does not finish and enter looping state,then isn't there any > way for ThreadC to resume execution ? Nope. The highest priority runnable thread always runs. All high priority threads need to finish doing what they are doing before a lower priority threads get to run. Andrew -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss