This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: Unexpected exit from threads
- From: Nick Garnett <nickg at ecoscentric dot com>
- To: David Luca <davidluca3000 at yahoo dot com>
- Cc: ecos-devel <ecos-devel at sourceware dot org>, ecos-discuss <ecos-discuss at sourceware dot org>
- Date: 23 Nov 2006 09:55:20 +0000
- Subject: [ECOS] Re: Unexpected exit from threads
- References: <20061123084302.89900.qmail@web38704.mail.mud.yahoo.com>
David Luca <davidluca3000@yahoo.com> writes:
> Hello,
>
> I tried the example found in twothreads.c, but renamed
> the file to hello.cpp to compile it with g++.
> I commented the printf calls and replaced with
> lighting led functions. The code looks like:
What happens if you leave the printf()s in as well as the led
functions? Are you sure that the for loop are long enough for the led
changed to be visible?
>
> When I run this example, I can see that each of the 2
> leds are lit, then the threads exits without
> continuing.
It is unlikely that the threads are exiting...
> Is there something wrong with the
> scheduler?
...or that there is anything wrong with the scheduler.
--
Nick Garnett eCos Kernel Architect
http://www.ecoscentric.com The eCos and RedBoot experts
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss