This is the mail archive of the ecos-discuss@sourceware.org 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: FW: FW: ecos-discuss@ecos.sourceware.org


> 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


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