Brian Xu - Sun Microsystems - Beijing China ??: > shu ming ??: > >> Here is the example: >> >> ID ADDR FLG NRUN BSPL PRI RNRN KRNRN SWITCH THREAD PROC >> 0 fffffffffbc259b0 1b 1 0 -1 no no t-0 ffffff0003e05c80 >> (idle) >> | | >> RUNNING <--+ +--> PRI THREAD PROC >> READY >> EXISTS >> ENABLE >> >> I was told that SWITCH stood for the ticks passed when the thread was on CPU >> in one second base. Is it correct? >> > Should be correct. It stands for the last time a new thread is switched > onto the CPU, that is the time the current thread runs on the CPU. > The time is a time point, not a time period instead. It is set as lbolt.
-Brian >> Can somebody explain it in more detail? And how can I know where SWITCH is >> from cpu struct? >> >> > clock_t cpu_last_swtch; /* last time switched to new thread */ > > > -Brian > >> >> >> This message posted from opensolaris.org >> _______________________________________________ >> mdb-discuss mailing list >> mdb-discuss at opensolaris.org >> >> > > _______________________________________________ > mdb-discuss mailing list > mdb-discuss at opensolaris.org >