This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: Twothreads.c without cyg_thread_delay
- From: Gary Thomas <gary at mlbassoc dot com>
- To: David Luca <davidluca3000 at yahoo dot com>
- Cc: ecos-discuss <ecos-discuss at sourceware dot org>
- Date: Fri, 24 Nov 2006 06:35:59 -0700
- Subject: Re: [ECOS] Twothreads.c without cyg_thread_delay
- References: <20061124132944.41513.qmail@web38712.mail.mud.yahoo.com>
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