From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31303 invoked by alias); 20 May 2008 01:26:31 -0000 Received: (qmail 31294 invoked by uid 22791); 20 May 2008 01:26:31 -0000 X-Spam-Check-By: sourceware.org Received: from pop132.ocn.ne.jp (HELO pop132.ocn.ne.jp) (60.37.31.215) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 20 May 2008 01:26:11 +0000 Received: from ariga (p1110-ipbf5210marunouchi.tokyo.ocn.ne.jp [118.8.156.110]) by pop132.ocn.ne.jp (OCN) with SMTP id m4K1Q7s0028980; Tue, 20 May 2008 10:26:07 +0900 (JST) Message-ID: <001b01c8ba18$785ab0d0$1c0110ac@ariga> From: "ariga masahiro" To: "Andrew Lunn" Cc: 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> <20080519131803.GA16046@lunn.ch> Date: Tue, 20 May 2008 01:26:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="ISO-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook Express 6.00.2900.3138 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/msg00072.txt.bz2 Hello everyone, Thank you very much for your answers. I've almost got it. I only need one more affirmation from you. >> 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. > Am I correct in thinking that this policy applys also to bitmap scheduler ? Masahiro Ariga >> 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