Process and Thread Management in Solaris Operating System
Process and Thread Management in Solaris Operating System
Management in Solaris
Operating System
There are three broad categories of tasks associated with the management of
the systems processes:
using Signals
Assigning the priority to the processes
1.ps command – the ps command can be used to view the processes running on the
system.
• ps prints information about processes that have the same effective user ID and the
same controlling terminal as the invoker of ps command.
• The output contains only the process ID(PID), terminal identifier (TTY),cumulative
execution time (TIME), and the command name (CMD).
2.pgrep – the pgrep command examines the active processes on the system and
reports the process IDs of the processes whose attributes match the criteria
specified on the command line.
3.prstat – the prstat command iteratively examines all active processes on the system and
reports overall statistics on screen.
4.preap – you can use the preap command to clean up a defunct or a zombie process.
# pstop 1234
6. prun – A temporarily suspended process can be resumed and made runnable with prun
command.
# prun 1234
8.pwdx – the current working directory of a process can be displayed using the pwdx command
9.pfiles – A list of files open within a process can be displayed with the pfiles command
Controlling the Processes
Controlling the processes in solaris includes clearing hung processes,
terminating unwanted or misbehaving process, changing the execution
priority of a process , resuming a suspended process , and so on.
1. The nice and renice Commands – the nice value of a process represents
the priority of the process.
- Every process has a nice value in the range from 0 to 39 being the
nicest.
- Higher the nice value, the lower the priority.
- by default ,user processes start with a nice value of 20.
2.at command – the at command lets you specify a one-time action to take
place at some desired time.
syntax – $ at –l [job-id]
• at –r – this command is use to remove any existing at job.
syntax - # at –r [job-id]
THANK YOU