linux进程学习
redhat server 2.6.x进程学习笔记 概要:进程概念;ps,pstree,top,kill,进程状态;man ps; [root@server1 /]# ps - report a snapshot of the current processes. ps [options] DESCRIPTION This version of ps accepts several kinds of options:
By default, ps selects all processes with the same effective user ID (euid=EUID) as the current user and associated with the same terminal as the invoker(非故意的; 偶然的). It displays the process ID (pid=PID), the terminal associated with the process (tname=TTY), the cumulated(累积) CPU time in [dd-]hh:mm:ss format (time=TIME), and the executable name (ucmd=CMD). Output is unsorted by default. To see every process on the system using standard syntax: To see every process on the system using BSD syntax: To print a process tree: To get info about threads: To get security info: To see every process running as root (real & effective ID) in user format: This ps works by reading the virtual files in /proc. This ps does not need to be setuid kmem or have any privileges to run. Do not give this ps any special permissions. This ps needs access to namelist data for proper WCHAN display. For kernels prior to 2.6, the System.map file must be installed. CPU usage is currently expressed as the percentage of time spent running during the entire lifetime of a process. This is not ideal, and it does not conform to the standards that ps otherwise conforms to. CPU usage is PROCESS STATE CODES For BSD |
凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢! |