This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
round-robin behaviour of MLQ wrt particular priority level
- From: sandeep <shimple0 at yahoo dot com>
- To: ecos-discuss at sources dot redhat dot com
- Date: Tue, 26 Oct 2004 22:31:56 +0530
- Subject: [ECOS] round-robin behaviour of MLQ wrt particular priority level
I was following -
wake (thread.cxx)
-> add_thread (mlqueue.cxx)
--> add_tail (Cyg_CList, clist.hxx)
---> insert (Cyg_DNode, clist.hxx)
shouldn't add_tail call append instead of insert??
insert adds new node at the beginning of the list, and in next schedule() call
get_head() will return the head element from list (Cyg_RunQueue). this means the
newer thread added to runqueue at a particular priority level will be given
chance first (making it LIFO). MLQ is roundrobin wrt a particular priority level.
is abosrbing over 9 hours of radiations making me see something wrong?
--
regards
sandeep
--------------------------------------------------------------------------
Anything worth doing is worth overdoing
--------------------------------------------------------------------------
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss