Typically, when a program starts executing, it begins in user-mode and then depending on the body of the code, if required enters kernel/system mode, and eventually exits in the user-mode where it exits legitimately. But consider the following C program, prog1.c
:
void main()
{
//empty bodied prog1.c
}
I am of the opinion that this program/process only runs in user-mode alone. Particularly, I am also of the opinion that this program/process would never involve any kernel-mode. But want to know experts' opinions.
Thanks, SS