daidong wrote: > Thanks a lot for your help! > > I still do not quit understand the 'scheduler thread'. > >>> Throughout main the boot cpu will continue to >>> run t0 - we've stopped it looking for any other work in mlsetup. >>> Our final action in main is to call sched(): > > When t0 was stopped? Can t0 be sceduled in CPU again? if it can, which code > it will execute?
Yes, t0 is a fully schedulable thread. After it's initial bootstrap activities we call sched() as above in that thread - see the source to sched in uts/common/os/sched.c. Once we're in sched() there is nothing special about t0 (its initial history now forgotten) and it lives out life as any other thread; thread t0 never exits - all paths loopback to label "loop". Gavin _______________________________________________ opensolaris-code mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/opensolaris-code
