This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: FW: FW: ecos-discuss@ecos.sourceware.org
- From: Andrew Lunn <andrew at lunn dot ch>
- To: Yong Chen Tan <oricon776 at hotmail dot com>
- Cc: "ecos-discuss at ecos dot sourceware dot org" <ecos-discuss at ecos dot sourceware dot org>
- Date: Fri, 27 Jun 2008 17:23:18 +0200
- Subject: Re: [ECOS] FW: [ECOS] FW: [ECOS] ecos-discuss@ecos.sourceware.org
- References: <BAY112-W30A27600F4D0D497E7699AEFA20@phx.gbl>
> Hi there, yes I know the serial device driver is giving me
> interrupts.. That brings back to my original problem, how is this
> going to help me solve the multithreading problem stuck at scanf()?
Because when you use this interrupt driver serial device driver, your
scanf() will not block busy looping taking 100% of the CPU. It will
just go to sleep until there is an interrupt saying a character has
arrived. So your other threads get to use the CPU.
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