This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Thread preemption and blocking IO & device drivers
- From: Andrew Lunn <andrew at lunn dot ch>
- To: Rycerz Roman-G11565 <roman dot rycerz at motorola dot com>
- Cc: "Ecos-Discuss at Sources dot Com (ecos-discuss at sources dot redhat dot com)" <ecos-discuss at sources dot redhat dot com>
- Date: Thu, 9 Sep 2004 17:57:08 +0200
- Subject: Re: [ECOS] Thread preemption and blocking IO & device drivers
- References: <5D454811D0A1D711A12A00065BF36FAD08B9E134@il06exm11>
On Thu, Sep 09, 2004 at 10:43:29AM -0500, Rycerz Roman-G11565 wrote:
> Hi
>
> I have a general question about threads and IO blocking.
>
>
> If I have 2 tasks A & B.
> A is higher priority (bitmap scheduler) and does a blocking read.
>
> Is there anything special the driver has to do to let task B to run ???
Nope, just use the normal device driver APIs and scheduling will work
correctly.
Andrew
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss