From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20213 invoked by alias); 16 May 2008 15:26:53 -0000 Received: (qmail 5127 invoked by uid 22791); 16 May 2008 12:51:17 -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; Fri, 16 May 2008 12:51:00 +0000 Received: from lunn by londo.lunn.ch with local (Exim 3.36 #1 (Debian)) id 1JwzOf-0007EO-00; Fri, 16 May 2008 14:50:53 +0200 Date: Fri, 16 May 2008 15:26:00 -0000 From: Andrew Lunn To: ariga masahiro Cc: ecos-discuss@ecos.sourceware.org Message-ID: <20080516125053.GA27629@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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000c01c8b72c$95df1bd0$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/msg00061.txt.bz2 On Fri, May 16, 2008 at 05:12:30PM +0900, ariga masahiro wrote: > Hello everyone, > > Please teach me about eCos Thread Scheduler. > When or on what condition does "deschedule" happen ? When the thread blocks. When a higher priority thread becomes runnable. When a thread uses up its time slice and there is another thread of the same priority which is runnable. When a thread calls yield and there is another thread of the same priority which is runnable. When a thread exits. There is nothing unusual here. Any good book on operating systems will teach you the same. 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