0% found this document useful (0 votes)
18 views

Process and Thread Management in Solaris Operating System

This document discusses process and thread management in the Solaris operating system. It defines what a process is and describes how processes can create child processes. It outlines three broad categories of process management tasks: monitoring processes, controlling processes, and scheduling processes. It provides examples of commands used to monitor processes like ps, pgrep, and prstat. It also discusses using signals and changing priority to control processes. Finally, it covers scheduling processes using cron jobs, the at command, and setting process priorities.

Uploaded by

Surbhi Yadav
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views

Process and Thread Management in Solaris Operating System

This document discusses process and thread management in the Solaris operating system. It defines what a process is and describes how processes can create child processes. It outlines three broad categories of process management tasks: monitoring processes, controlling processes, and scheduling processes. It provides examples of commands used to monitor processes like ps, pgrep, and prstat. It also discusses using signals and changing priority to control processes. Finally, it covers scheduling processes using cron jobs, the at command, and setting process priorities.

Uploaded by

Surbhi Yadav
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 9

Process and Thread

Management in Solaris
Operating System

Created by – Samyak Jain


MCA/25014/2022
Submitted to – Shripal Vijayvargiya Sir
What is Process?

 A Process is an instance of a running program or a


program in execution.

 A Process can create another process called a child


process,any process that creates the child process is
called the parent process.

 This creation of new processes from existing parent


processes is called forking.

 Each process is identified uniquely with a positive integer


number names PID.
Process and Thread Management
Managing processes becomes important in a multiuser environment such as
Solaris.

There are three broad categories of tasks associated with the management of
the systems processes:

 Monitoring the Processes

Viewing the PID,UID and PPID


Viewing the priority of the process
Viewing the Resource Usage(in terms of memory and processor utilization)
Viewing the state of the process ,etc.

 Controlling the Processes

using Signals
Assigning the priority to the processes

 Scheduling the Processes


Monitoring the Processes
In Solaris, you can monitor processes that are exactly on a system by using one of
the commands listed.

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.

Syntax – prstat [option] <count> <interval>

4.preap – you can use the preap command to clean up a defunct or a zombie process.

5.pstop – A process can be temporarily suspended with the pstop command.

• You need to specify the PID of the process to be suspended.

# pstop 1234
6. prun – A temporarily suspended process can be resumed and made runnable with prun
command.
# prun 1234

7.pwait – pwait command blocks and wait for termination of a process.

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.

The different ways the process can be controlled in solaris:-

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. Signals – Solaris supports the concepts of signals, which are software


interrupts.
- Signals can be used for communication between processes.
- A signals notifies the receiving process about an event.
Scheduling Processes
Scheduling Processes includes assigning priorities to the processes based on the
importance and the need.
Using these command one can increase the priority of the process.

1.cron Utility – cron utility allows tasks to be automatically run in the


background at regular intervals by the cron daemon. These are often termed as
cron jobs in solaris.

- cron daemon: Is a software process that runs in the background


continuously and provides the service to the client upon request.

2.at command – the at command lets you specify a one-time action to take
place at some desired time.

syntax- at [-m] <time> <date>

• atq- to check your jobs that are waiting in the queue.

syntax – $ at –l [job-id]
• at –r – this command is use to remove any existing at job.

syntax - # at –r [job-id]
THANK YOU

You might also like