8.4. Process Creation

All processes in Solaris are created with the traditional fork/exec UNIX process creation model that was part of the original UNIX design and is still implemented in virtually every version of UNIX in existence today. The only exceptions in the Solaris environment are the creation of four system daemons at startup, PIDs 0 through 3: the memory scheduler (sched, PID 0), init (PID 1), the pageout daemon (PID 2), and fsflush (PID 3). These processes are created by an internal kernel newproc() function. The mechanics of process creation are illustrated in Figure 8.12.

Figure 8.12. Process Creation

The fork(2) and exec(2) system ...

Get Solaris™ Internals: Core Kernel Components now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.