Thread - Object of activity with in a process,it is a light weight process .It shares memory,open space and address space with other threads.It is less expensive than process creation.
We can use TOP or PS comamnd to see running processes.
PS - It provide information about the currently running processes, including their process identification numbers (PIDs). Both Linux and UNIX support the ps command to display information about all running process. The ps command gives a snapshot of the current processes.
TOP-Display and update sorted information about processes.
Type the following ps command to display all running process-
# ps aux | lessWhere,- -A: select all processes
- a: select all processes on a terminal, including those of other users
- x: select processes without controlling ttys
see every process on the system - # ps -A and # ps -e
See process run by user- # ps -u user
See every process except those running as root - # ps -U root -u root -N
The top program provides a dynamic real-time view of a running system. Type the top at command prompt:
# top
# top
# ps -eLf # ps axms
Context Switching : Commands for context switches
Command for Run Queue
No comments:
Post a Comment