This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: DSRs and Threads


> 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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]