This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Help: non pre-emptive kernel with priorities
- From: Grant Edwards <grante at visi dot com>
- To: Damian Slee <damian at commtech dot com dot au>
- Cc: Zhao Luo <ZhaoL at TCTechnologies dot tc>,ecos-discuss at ecos dot sourceware dot org
- Date: Thu, 24 Feb 2005 22:41:55 -0600
- Subject: [ECOS] Re: Help: non pre-emptive kernel with priorities
- References: <B967C997C2BE2D48A6BBE14078F79BD6287774@ntserver.commtech.com.au>
On Fri, Feb 25, 2005 at 11:51:15AM +0800, Damian Slee wrote:
>> I want to use a non-preemptive kernel with priorities. That
>> is, during a thread's running, even when a higher priority
>> thread gets ready, the higher priority thread still needs to
>> wait until the current thread yield/block.
>
> I'm pretty sure you can turn off pre-emptive in the ecos
> config tool. Just turn off tick box "Scheduler timeslicing"
That doesn't disable pre-emption by higher priority tasks. It
dislable timeslicing of same-priority tasks.
I'm not sure if it's possible to keep the scheulder
permantently "locked" so that it only gets called when a task
explicitly yeilds or not.
--
Grant Edwards
grante@visi.com
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss