3
votes

If a process causes a lot of context switches, will the CPU cycles used in the context switch be shown in the process CPU utilization?
In other words, if I run a process that essentially repeatedly executes a system call, then should the output of top show an increase in CPU utilization for the process because of the increase in context switching from user to kernel space and vice versa?

1

1 Answers

1
votes

Yes, I think it should.

Look at the man pages for top and time in linux and possibly other *nix systems.