On 07/02/05 07:30, Michael Schulte wrote:


I am of the opinion, that context switch time has nothing to do
with multithreaded applications (at least on Solaris) because a
multithreaded application is always in the same "context"
(because of shared global address space of such a program).

There is more to "context" than just the address space id.  For
example, to switch between threads of the same process we still have to
preserve registers etc of the outgoing thread and restore
those of the incoming thread ready for execution;  true
we do not have to reprogram the context registers if the
threads are of the same process, but that is just one part
of the overall resume() operation.

Gavin
_______________________________________________
perf-discuss mailing list
perf-discuss@opensolaris.org

Reply via email to