[ECOS] Twothreads.c without cyg_thread_delay

Gary Thomas gary@mlbassoc.com
Fri Nov 24 13:36:00 GMT 2006


David Luca wrote:
> Hello,
> Today I started twothreads.c application, but I
> replaced printf(not working yet on my platform) with
> leds. My question is, without the cyg_thread_delay, is
> it possible to run concurrently the two threads?
> Because if I comment this function, only one task is
> running, I can see that only one led is turn on and
> off.

Yes, this code will work perfectly well without any 'printf()'
calls.  If it's not, it implies that interrupts (most particularly
the system clock interrupt) are not working properly.

n.b. this is not a developmental issue, so there's no need
to copy it to ecos-devel list.  That list should be used to
discuss issues surrounding extending eCos, etc, not for
simple problems encountered while using (or even porting)
eCos.

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



More information about the Ecos-discuss mailing list