Strawman proposal: making libthr default thread implementation?
David Xu
davidxu at freebsd.org
Tue Jul 4 23:24:42 UTC 2006
On Wednesday 05 July 2006 07:06, David Xu wrote:
> Cann't solaris's user usage scheduler will solve the problem ? if I
> recall it correctly, the decay factor in 4bsd scheduler can be changed
> dynamically for a thread, the decay factor can be stored in thread
> structure, and timeslice can be dynamically changed, also can be in thread
> structure, unlike current implementation, timeslice is fixed, this may
> make fair scheduling possible without ksegrp.
>
> Also will the roundrobin callout preempt a thread ? if that's true, then
> when every timeslice tick, a thread exhausted its timeslice is put at head
> of runqueue, isn't it a bug ? the callout is somewhat random for a thread,
> might not be a problem...
OK, I just digged out the paper in my disks, here is the reference:
http://people.freebsd.org/~davidxu/doc/solaris2.pdf
[the address thread at freebsd.org is removed]
I think we really should do more work in kernel scheduler, and remove
ksegrp.
David Xu
More information about the freebsd-threads
mailing list