博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Linux的JCPU与PCPU区别
阅读量:5231 次
发布时间:2019-06-14

本文共 652 字,大约阅读时间需要 2 分钟。

转:https://blog.csdn.net/mr_leehy/article/details/76419363

使用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.

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

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

转载于:https://www.cnblogs.com/xiaoshen666/articles/10669725.html

你可能感兴趣的文章