cvs commit: src/sys/sys sched.h src/sys/posix4
ksched.c src/sys/kern sched_4bsd.c sched_core.c sched_ule.c
delphij at delphij.net
Thu Jun 15 09:49:05 UTC 2006
在 2006-06-15四的 10:29 +0100，Robert Watson写道：
> On Thu, 15 Jun 2006, Xin LI wrote:
> [...]> 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?
> It should make no difference -- sched_sizeof_proc() is evaluated exactly once,
> when the process zone is created. After that, the size is cached in the
> process zone and never re-evaluated. The current model allows the size to be
> calculated based on data structures private to sched_foo.c, which has some
> nice implementation hiding advantages :-).
Oh... Yes that's quite reasonable. Thanks for the explanation!
Xin LI <delphij delphij net> http://www.delphij.net/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 187 bytes
Url : http://lists.freebsd.org/pipermail/cvs-src/attachments/20060615/6f7505bc/attachment.pgp
More information about the cvs-src