All mock tests are FREE till 31 December — register to save your progress

Which statement is not correct about the 'init' process in UNIX?

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: C. It is the first process in the system.

Explanation

init is created by the kernel as the first user-space process after boot and is assigned PID 1, and it does act as the ancestor of login shells and spawn a getty process on each terminal line to handle logins, so statements (i), (ii) and (iv) are all accurate. Calling it 'the first process in the system', however, overstates things: the kernel itself runs boot-time initialization and sets up the idle/'swapper' context, conventionally PID 0, before init is ever started, so init is really the first process handed off to user space rather than literally the first process of any kind. That technical imprecision makes statement (iii) the one that is not correct.

More Software Engineering questions