cvs commit: src/sys/sys sched.h src/sys/posix4 ksched.c src/sys/kern sched_4bsd.c sched_core.c sched_ule.c

Xin LI delphij at delphij.net
Thu Jun 15 09:21:23 UTC 2006


Hi, David,

在 2006-06-15四的 06:37 +0000,David 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/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: =?UTF-8?Q?=E8=BF=99=E6=98=AF=E4=BF=A1=E4=BB=B6=E7=9A=84=E6=95=B0?=
	=?UTF-8?Q?=E5=AD=97=E7=AD=BE=E5=90=8D=E9=83=A8=E5=88=86?=
Url : http://lists.freebsd.org/pipermail/cvs-src/attachments/20060615/9f56b72c/attachment-0001.pgp


More information about the cvs-src mailing list