[ECOS] Two-threads issue with priority

PeterKu peter_ku@issc.com.tw
Tue Feb 18 06:00:00 GMT 2003


Hi,

I run the sample program with two-threads, and remove the cyg_thread_delay() in the thread.
Create two thread with the same priority, I found if the priority of the thread smaller than 10, then only one thread can run. the two thread can't switch.
But if I set the priority larger than or equal 10, two thread can switch with time slice.
Why?


Best Regards,
Peter


More information about the Ecos-discuss mailing list