This is the mail archive of the ecos-discuss@sources.redhat.com 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]

Two-threads issue with priority


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

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