[ECOS] Thread state during interruption
Jonathan Larmour
jifl@eCosCentric.com
Fri Jun 13 04:33:00 GMT 2003
Michele Portolan wrote:
> I'm programming an interrupt handler,but there's a thing I cannot
> understand:
> if I do not change the interrupted thread state inside the ISR do I risk for
> it to be scheduled before the DSR has terminated?
Yes an ISR can run again before the DSR is terminated unless you mask that
interrupt. Allowing interrupts to remain enabled is one of the points of
the ISR being separate from a DSR. An ISR can run before the DSR is even
started!
> But there are not states like "blocked on interrution".
ISRs are run "outside" the kernel - kernel interaction is for DSRs
(althoug that doesn't by itself change thread state either,
intentionally). The thread state is not altered just because an ISR is
running.
Jifl
--
eCosCentric http://www.eCosCentric.com/ The eCos and RedBoot experts
--[ "You can complain because roses have thorns, or you ]--
--[ can rejoice because thorns have roses." -Lincoln ]-- Opinions==mine
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
More information about the Ecos-discuss
mailing list