Linux的JCPU与PCPU

来源:互联网 发布:淘宝网卖安眠药叫什么 编辑:程序博客网 时间:2024/04/30 08:53

source: http://blog.csdn.net/zzxian/article/details/8070144


使用w命令查看用户登录信息时,会显示到PCPU与JCPU,这个概念是什么意思呢?

JCPU -   the CPU time used by all processes and their children on that terminal (in minutes:seconds)

PCPU - the CPU time used by the currently active processes (in minutes:seconds)

使用:man w,得到的解释是

The   JCPU   time   is the time used by all processes attached to the tty.  It does not include past background jobs, but does include currently running background jobs.【所以j就是job的意思咯】

The   PCPU   time   is   the time used by the current process.

中文可以这样理解:JCPU指的是与该tty终端连接的所由进程占用的时间,不包括过去的后台作业时间;PCPU 指的是当前进程(即w项中显示的)所占用的时间。


0 0
原创粉丝点击