This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: DSRs and Threads
- To: Royston Choo <rcjm51 at hotmail dot com>
- Subject: Re: [ECOS] DSRs and Threads
- From: Jonathan Larmour <jlarmour at redhat dot co dot uk>
- Date: Thu, 24 Aug 2000 15:22:51 +0100
- CC: ecos-discuss at sources dot redhat dot com
- Organization: Red Hat UK Ltd.
- References: <OE218FNpyLAPDVXLuSb00000055@hotmail.com>
> 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