[ECOS] DSRs and Threads

Jonathan Larmour jlarmour@redhat.co.uk
Thu Aug 24 07:22:00 GMT 2000


> Royston Choo wrote:
> 
> Hi,
> 
> I have 5 periodic threads running, and interrupt occurs which call DSR.
> Will the DSR be scheduled to run immediately after the ISR, or will it be
> run at a later time when all the periodic threads has finished.

DSRs run after ISRs, but with interrupts enabled (so an ISR can interrupt a
DSR but not vice-versa).

After all DSRs have been run, threads are then rescheduled.

So a DSR is only guaranteed to run immediately after an ISR if there are no
other interrupts.

Jifl
-- 
Red Hat, 35 Cambridge Place, Cambridge, UK. CB2 1NS  Tel: +44 (1223) 728762
"Plan to be spontaneous tomorrow."  ||  These opinions are all my own fault


More information about the Ecos-discuss mailing list