This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Two-threads issue with priority
- From: "PeterKu" <peter_ku at issc dot com dot tw>
- To: "'eCos discussion'" <ecos-discuss at sources dot redhat dot com>
- Date: Tue, 18 Feb 2003 13:58:09 +0800
- Subject: [ECOS] 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