用户CPU时间与系统CPU时间? [英] User CPU time vs System CPU time?

查看:223
本文介绍了用户CPU时间与系统CPU时间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您能否解释一下有关用户CPU时间和系统CPU时间的更多信息?我已经读了很多书,但是我听不懂。

Could you explain more about "user CPU time" and "system CPU time"? I have read a lot, but I couldn't understand it well.

推荐答案

区别是用户是否花费时间空间或内核空间。用户CPU时间是在处理器上运行程序代码(或库中的代码)所花费的时间;系统CPU时间是代表您的程序在操作系统内核中运行代码所花费的时间。

The difference is whether the time is spent in user space or kernel space. User CPU time is time spent on the processor running your program's code (or code in libraries); system CPU time is the time spent running code in the operating system kernel on behalf of your program.

这篇关于用户CPU时间与系统CPU时间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆