From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31438 invoked by alias); 19 May 2008 13:31:56 -0000 Received: (qmail 31429 invoked by uid 22791); 19 May 2008 13:31:55 -0000 X-Spam-Check-By: sourceware.org Received: from hermes.mlbassoc.com (HELO mail.chez-thomas.org) (204.133.123.27) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 19 May 2008 13:31:36 +0000 Received: by mail.chez-thomas.org (Postfix, from userid 999) id 4D9FE68C80E6; Mon, 19 May 2008 07:31:17 -0600 (MDT) Received: from hermes.chez-thomas.org (hermes_local [192.168.1.101]) by mail.chez-thomas.org (Postfix) with ESMTP id BE29E68C80A9; Mon, 19 May 2008 07:31:14 -0600 (MDT) Message-ID: <48318121.5040102@mlbassoc.com> Date: Mon, 19 May 2008 13:31:00 -0000 From: Gary Thomas User-Agent: Thunderbird 2.0.0.12 (X11/20080226) MIME-Version: 1.0 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> <20080519131803.GA16046@lunn.ch> In-Reply-To: <20080519131803.GA16046@lunn.ch> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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/msg00064.txt.bz2 Andrew Lunn wrote: >> 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. More than that; when a thread blocks, the act of blocking actually calls into the scheduler to immediately switch to the next available thread. -- ------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------ -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss