Hi, David,
2006-06-15 06:37 +0000David Xu
> davidxu 2006-06-15 06:37:39 UTC
>
> FreeBSD src repository
>
> Modified files:
> sys/sys sched.h
> sys/posix4 ksched.c
> sys/kern sched_4bsd.c sched_core.c sched_ule.c
> Log:
> Add scheduler API sched_relinquish(), the API is used to implement
> yield() and sched_yield() syscalls. Every scheduler has its own way
> to relinquish cpu, the ULE and CORE schedulers have two internal run-
> queues, a timesharing thread which calls yield() syscall should be
> moved to inactive queue.
A question that might be related: We have sched_sizeof_proc(), etc. in
every scheduler, which returns a constant. Is it worthy to convert them
to constants that just expand inline during the kernel compile?
Cheers,
--
Xin LI <delphij delphij net> http://www.delphij.net/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (FreeBSD)
iD8DBQBEkSZ+hcUczkLqiksRAvBuAKCdzxsnuzEljEhrCPnFNUMqvEgoxACgoIQl
hEJoVoPlFfdX0iD+u1YeaVc=
=36ZL
-----END PGP SIGNATURE-----