[ECOS] Question about scheduler & sleep
Andrew Lunn
andrew.lunn@ascom.ch
Mon Aug 19 08:38:00 GMT 2002
On Mon, Aug 19, 2002 at 11:33:46AM -0400, jyl087@netscape.net wrote:
> Bart,
>
> Thanks for the thoughtful answer! From your reply, I think I
> can infer something else which I've been curious about...
> namely, what is the difference between cyg_scheduler_lock()
> and disabling interrupts.
>
> It sounds like cyg_scheduler_lock() allows ISRs to run, but
> DSRs will not get scheduled. Is that right?
Yes, thats correct. This is also in the documentation somewhere,
whereas trying to sleep with the schedular locked being a bad idea is
not documented.
Andrew
--
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