The professor is partially correct.
The data that is being saved when switching from user mode to kernel mode is the state of the CPU, not the process. User mode and kernel mode are CPU-related, not process-related. When the kernel executes some function on behalf of the user, the state of the CPU is saved beforehand. That is, the state of the CPU when it was executing the user mode code. Then, the kernel performs its action based on the user mode code's request. Finally, the kernel restores the state of the CPU back to the previously-saved state. The kernel may return the CPU back to user mode, depending on the kernel in question.
The kernel process has nothing to save, because it was not running beforehand. It (the kernel process) does a job on behalf of the user mode process, and then it is finished. The CPU can return to user mode, as far as the kernel is concerned.
Operating system components typically run in kernel mode, also called Ring 0 on x86 processors. User mode contains applications and is sometimes referred to as Ring 3.
Good question, but I don't know if this is the best site. I think http://programmers.stackexchange.com may get you a better answer. You can flag your own question for a moderator and he can move the question there for you.
– Scott Chamberlain – 2013-01-07T22:40:54.080Should be on StackOverflow. – user541686 – 2013-01-07T23:15:47.940
Was he talking about a particular OS by the way? I think this is OS-dependent... one could write an OS that does need to save some things, I think. – user541686 – 2013-01-07T23:17:23.947
1
This question has nothing specific to do with programming and thus suggesting migrations to Programmers and Stack Overflow aren't the right way to deal with this question; it lies more to computers and there internals, I wouldn't say it's on-topic on Super User and it feels almost like http://cs.stackexchange.com/ or http://cstheory.stackexchange.com/. But well, let's see what the community decides to do with it...
– Tamara Wijsman – 2013-01-08T01:09:49.293It's more computer science than anything else, voting to close doesn't offer the beta site as an option. – Tog – 2013-01-08T09:26:40.653