Where in the boot process does the "scheduler" get created and when created how can its instructions be acce开发者_如何学JAVAssed?
That depends on the OS you use, but several things should be clear:
- before the first switch to userland
- before any kernel threads are started or any other multi-programming (multi-tasking) is done
Obviously that is relatively early in the boot process.
What exactly do you mean by "how can its instructions be accessed?"?
the default scheduler is set in kernel config : adrian@adrian: ~ $ grep cfq /boot/config-2.6.36.2-desktop-2mnb CONFIG_DEFAULT_IOSCHED="cfq"
at boot time you can do in the kernel line as example: kernel /vmlinuz-2.6.18-8.el5 ro root=/dev/sda2 elevator=deadline
精彩评论