This is the mail archive of the mailing list for the eCos project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Threads never called in twothreads example

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!

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:
and search the list archive:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]