L inux processes and Threads
Process consists of a sequence of processes running on the kernel and kernel
A CPU running a process, multi-process means: In a cup can be multiple processes, (that is, multi-process) but it is switching to each other, but can cause a loss of performance, that is, a point in time can only run a process. 650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/7F/D8/wKiom1cv8TfD9juYAABEyoEKznU400.png "title=" Picture 1.png "alt=" Wkiom1cv8tfd9juyaabeyoekznu400.png "/>
The program executes inside the memory, and the process is described inside the kernel.
Thread: Lightweight process, which is the smallest unit in program execution. Multiple processes in the same process can execute concurrently.
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/7F/D8/wKiom1cv8WOhTWUKAACGK8bZoZ4009.png "title=" Picture 2.png "alt=" Wkiom1cv8wohtwukaacgk8bzoz4009.png "/>
ready: Preparing to run
sopped: Stop State
Executing: Running process
Uninterruptible: Non-disruptive sleep
Interruptible:: can sleep interrupted
Zombie Process: Normally only restarts, freeing up resources
Commands in the process:
PSS Ps-aux Ps-al
Pstree Viewing the process tree
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/7F/D8/wKiom1cv8X2hdb-TAABTKESpZr0523.png "title=" Picture 3.png "alt=" Wkiom1cv8x2hdb-taabtkespzr0523.png "/>
PS-EF List Processes
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/7F/D6/wKioL1cv8nXCbVk5AAB1mlf-Ryw955.png "title=" Picture 4.png "alt=" Wkiol1cv8nxcbvk5aab1mlf-ryw955.png "/>
Ps-al
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M01/7F/D6/wKioL1cv8oyCcK2WAAAuCMRUsYE081.png "title=" Picture 5.png "alt=" Wkiol1cv8oycck2waaaucmrusye081.png "/>
S :R indicates in-run T: Process is stopped X: Process exited Z: Zombie Process
Top : Show programs in management execution
Jobs: Show Jobs
...& on behalf of background execution
CTRL + Z represents process pauses
CTRL + C on behalf of process termination
FG%jobnum backstage work in foreground processing
Kill-signal%jobnumber,PID
Signal:-9 means force kills the process
-15 End process with normal work
-17 pause process, equivalent to Ctrl + Z
-2 interrupt process, equivalent to CTRL+CR
Find process command:ps-ef | grep " "
This article is from the "11557552" blog, please be sure to keep this source http://11567552.blog.51cto.com/11557552/1771378
Linux Processes and Threads