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: Detect if scheduler locked?


On Tue, Oct 22, 2002 at 05:45:36PM +0200, Andrew Lunn wrote:

> > Now I've got a customer who is calling this routine with the
> > scheduler locked (in order to prevent other tasks from
> > attempting to read the flash while it's busy, I presume).
> 
> Semaphores/mutexs sound like the correct answer, with multiple
> read lockers but one write locker. Classical stuff you learn in
> university when doing a CS degree.

Yup.  I suggested that.  I even pointed out example source code
for a read/write lock in the Butenhof pthreads book.

-- 
Grant Edwards
grante@visi.com

-- 
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]