O'Reilly logo

Solaris™ Internals: Core Kernel Components by Richard McDougall, Jim Mauro

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required