previous contents up next

Unix for Advanced Users

10. Process Management under Unix

10.4. Process States - Resident, Sleeping, Zombie Processes

As we saw before, the Unix command used to check on the status of currently running processes is ps. There are two flavors of ps - the SVR4 ps and the BSD ps. Tru64UNIX (formerly Digital UNIX), HP-UX, Irix, and Solaris use the SVR4-ish flavor while AIX and Linux use the BSD-ish flavor. The main differnce is that one uses ps -ef to take at all running process under SVR4 and ps aux under BSD.

The following shows a typical SVR4 ps -al output (on Solaris):

The second column shows which state the process is in. You should check the man page for your version of ps to make sure, but the usual convention is: (The O on line 10 in SVR4 ps under Solaris means the process is currently running on a CPU.)
previous contents up next