[ECOS] Re: Preemption in Bitmap Scheduler

Grant Edwards grante@visi.com
Wed Mar 21 18:45:00 GMT 2007


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



More information about the Ecos-discuss mailing list