This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
How does multi-threading happen?
- From: "HuangQiang" <jameshq at liverpool dot ac dot uk>
- To: "eCos" <ecos-discuss at sources dot redhat dot com>
- Date: Wed, 24 Apr 2002 18:30:12 +0100
- Subject: [ECOS] How does multi-threading happen?
Hi all:
In eCOS after a thread is created and resume, the actual user's program
will be run by calling hal_thread_load_context() and branch to the user's
thread. But if for two equal priority thread how does the thread switching
happens? How does the thread know when to switch to another thread if the
other is the same priority? where does the scheduler take care of the
thread switching(equal priority threads)? (arm e7t)
Thanks a lot for your help.
Best regards!
james
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss