This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: ecos-discuss@ecos.sourceware.org
- From: Gary Thomas <gary at mlbassoc dot com>
- To: Yong Chen Tan <oricon776 at hotmail dot com>
- Cc: ecos-discuss at ecos dot sourceware dot org
- Date: Wed, 25 Jun 2008 04:19:20 -0600
- Subject: Re: [ECOS] ecos-discuss@ecos.sourceware.org
- References: <BAY112-W38185E99A06ECFA9A4F671EFA00@phx.gbl>
Yong Chen Tan wrote:
>
> Hi, I got some doubts regarding the multi-threading.
> I experience some problems when i do multi-threading.
> The thread seems to stuck at the scanf function. Is it normal? Are there ways to solve this problem?
What's the source of your input? Notice that the default console (haldiag) does
non-interrupt I/O (in fact with interrupts disabled) and will definitely block
all other threads from running.
If you want interruptable console I/O, you'll need to enable the serial drivers.
Check the archives for lengthy discussions on this point.
> Is eCos multithreading - cooperative or preemptive?
Preemptive.
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss