How to know the program execution in which space(Kernel/User)

Hi,How should i know a program executes in which space (whether it is in kernel space or in user space)Thanks in advance.
[149 byte] By [Lokesh_Maremalla] at [2007-11-14]
# 1

Hi

If you're asking such a question, then I guess that you must be executing in user space. Kernel space code is implemented in the kernel and kernel modules. User space code can access kernel space code via system calls, but these are "black boxes" from a user space perspective. The transition of memory space and CPU privilege is all done by the system call.

Paul

Paul_Floyd at 2007-7-5 > top of java,Development Tools,Solaris and Linux Development Tools...