[ECOS] Threads never called in twothreads example
Jonathan Larmour
jlarmour@redhat.com
Wed Feb 13 05:35:00 GMT 2002
Chris Hanna wrote:
>
> I might be seeing the same thing. I see simple_program() get called (for
> threadA i guess), which calls cyg_thread_delay(200), then simple_program()
> is called again (for threadB i guess) which calls cyg_thread_delay(200), but
> neither of them ever get to the for (;;) loop. I see main() get invoked,
> which i guess is just some stub since exit() is called. It looks like the
> scheduer does something after that, which ultimately ends up at the
> idle_thread_main() which is a infinite loop.
In GDB you can use "info threads" to list the threads and find out their
state. You can use "thread N" to switch to thread number N.
If this is a new board port, perhaps the timer interrupt isn't working -
otherwise the kernel will never know to stop delaying!
Jifl
--
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
More information about the Ecos-discuss
mailing list