sys/param.h

Matthew Dillon dillon at apollo.backplane.com
Thu Jul 31 16:28:43 PDT 2003


:Matt,
:
:are we going to use the priority queues from sys/param.h?
:
:Right now they're #if 0'd out.
:
:tsleep() code uses it, for example.
:
:-- 
:Jeroen Ruigrok van der Werven <asmodai(at)wxs.nl> / asmodai

    You mean all the Pxxx stuff?  No, we aren't going to use that any 
    more.  That is used in 4.x and 5.x because kernel threads are scheduled
    by the user process scheduler.  In DragonFly kernel threads are
    scheduled by the LWKT scheduler and (typically) have a set fixed
    priority based on whether the thread represents an interrupt, software
    interrupt, mainline kernel code, etc.  You may have noticed that I removed
    all the priority junk from tsleep, only flags are passed now.

    We may reintroduce some sort of priority mechanism to deal with certain
    obscure situations but at the moment I am leaning against it.  If we do
    it will take on a different form.. probably a flag to tsleep rather then
    a 'priority'.

					-Matt
					Matthew Dillon 
					<dillon at xxxxxxxxxxxxx>





More information about the Kernel mailing list