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]
Other format: [Raw text]

Re: Question about scheduler & sleep


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


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