1

I have the following problem: I use ecos for my micro controller and I start multiple threads with 'cyg_scheduler_start();'. Now I want to stop them, no problem with 'cyg_thread_exit()'. But if I stop the last Task, the micro controller doesn't return to main, where I call the threads. The main should run after the start of the threads a led.

or at least, to say start the other threads after the first threads are finished. I use at the moment cyg_thread_suspend and cyg_thread_resume to realise this. But is there a better way to do this?

4

1 回答 1

1

答案或多或少非常简单。它不去。你可以做的是一个线程来处理其他线程,只是一个想法。

于 2015-10-08T05:55:45.723 回答