The very first process created by the kernel that runs till the kernel process halts is:
IBM technical mcq question, verified with a worked answer. Free to practise - no sign-up.
The very first process created by the kernel that runs till the kernel process halts is:
Show answer & explanation
The init process (PID 1) is the first user-space process created by the kernel during boot and is the ancestor of all other processes. It runs continuously until system shutdown and is responsible for spawning getty processes on terminals, not the other way around. Getty is a terminal login process spawned by init, not the first kernel process.
Step-by-step Derivation:
In Unix/Linux boot sequence: (1) Kernel starts → (2) Kernel creates init (PID 1) as the first process → (3) init reads /etc/inittab or systemd configuration → (4) init spawns getty processes on each terminal for login prompts. Init persists throughout the system lifetime, while getty instances are spawned on demand per terminal. Therefore, init is the answer, not getty, and not both.