DragonFly BSD
DragonFly kernel List (threaded) for 2003-07
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: sys/param.h


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxx>
Date: Thu, 31 Jul 2003 16:26:54 -0700 (PDT)

: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@xxxxxxxxxxxxx>



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]