This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Question about scheduler & sleep
- From: Andrew Lunn <andrew dot lunn at ascom dot ch>
- To: jyl087 at netscape dot net
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Mon, 19 Aug 2002 17:38:01 +0200
- Subject: Re: [ECOS] Question about scheduler & sleep
- References: <15A27F57.7893CBF5.00067016@netscape.net>
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