This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: When or on what condition does "deschedule" happen?
- From: Andrew Lunn <andrew at lunn dot ch>
- To: ariga masahiro <ariga at link-lab dot co dot jp>
- Cc: ecos-discuss at ecos dot sourceware dot org
- Date: Fri, 16 May 2008 14:50:53 +0200
- Subject: Re: [ECOS] When or on what condition does "deschedule" happen?
- References: <001001c85189$461611c0$1c0110ac@ariga> <4782BE28.8030706@mlbassoc.com> <000601c8750f$5ffb19b0$1c0110ac@ariga> <001001c87522$98475a50$1c0110ac@ariga> <000c01c8b72c$95df1bd0$1c0110ac@ariga>
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