This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: Preemption in Bitmap Scheduler
- From: Grant Edwards <grante at visi dot com>
- To: ecos-discuss at sources dot redhat dot com
- Date: Wed, 21 Mar 2007 18:43:25 +0000 (UTC)
- Subject: [ECOS] Re: Preemption in Bitmap Scheduler
- References: <724835.27060.qm@web36215.mail.mud.yahoo.com>
On 2007-03-21, Potdar Smita <sspotdar@yahoo.com> wrote:
> What about preemption?
It works just fine.
> Once a thread begins executing, does it run to completion or
> can it be preempted by a higher priority thread?
The latter.
> Does eCos handle threads created after the system starts
> working?
Of course. There's no way to create a thread before the system
starts working. I have worked with RTOSes where threads could
be declared statically, but eCos doesn't work that way: all
threads are created dynamically.
> If yes, how is this done?
you call cyg_thread_create().
--
Grant Edwards grante Yow! ... I see TOILET
at SEATS...
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