作者sowter (不到一百年人生,似乎太短)
看板ask
标题[请问] 程式的说明看不太懂(要电脑基础
时间Mon Feb 22 11:00:59 2016
The ‘user time’ is the CPU time charged for the execution of user
instructions of the calling process.
The ‘system time’ is the CPU time
charged for execution by the system on behalf of the calling process
这边的 使用者时间(user time)跟系统时间(system time)翻译过还是不知道在讲甚麽
麻烦指导
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 1.167.86.35
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/ask/M.1456110062.A.390.html
1F:→ Schottky: 你知道什麽是 process 吗? 02/22 11:04
2F:→ sowter: 程式码 02/22 11:04
3F:→ sowter: 我这边用道这是 测试我程式码跑的时间 02/22 11:05
4F:→ Schottky: 呃... 我觉得我再怎麽解释你也是不会懂的... 02/22 11:05
5F:→ sowter: 想问 他给的解释详细翻译 02/22 11:06
6F:→ Schottky: 你知道什麽是 system call 吗? 02/22 11:06
7F:→ Schottky: user time 是指该 process 在 user mode 使用的时间 02/22 11:07
8F:→ sowter: 不太清楚 知道cpu而已 02/22 11:07
9F:→ Schottky: system time 是该 process 使用 system call 消耗的时间 02/22 11:08
10F:→ Schottky: 至於什麽是 user mode, kernel mode 修过作业系统这门课 02/22 11:10
11F:→ Schottky: 就会讲到了... 02/22 11:10
12F:→ sowter: user(电脑) system(这个程式软体) 的时间 这样? 02/22 11:10
13F:→ Schottky: 不是,差远了 02/22 11:11
14F:→ Schottky: 如果这台主机不是几十个学生共用的学校工作站, 02/22 11:11
15F:推 hicker: ....看来原po要先去学英文 再来学电脑 02/22 11:11
16F:→ sowter: 你给的关键字我在自己找找好了 谢谢 02/22 11:12
17F:→ Schottky: 你想知道花多久执行,看 real time 也就差不多了 02/22 11:12
18F:→ Schottky: 倒不是英文问题,主要是这些全是多工作业系统的术语 02/22 11:12
19F:→ sowter: 他有实际时间这output 只是我问的那两个有 02/22 11:14
20F:→ sowter: 报告要解是清楚比较好 02/22 11:14
21F:→ Schottky: 这简单,你就写 user time 是在 user mode 使用的时间 02/22 11:28
22F:→ Schottky: system time 是在 kernel mode 使用的时间 02/22 11:28
23F:→ Schottky: 如果对方听不懂,你就叫他去重修三学分的作业系统 02/22 11:29
24F:→ sowter: :D 谢谢 02/22 11:30
25F:→ Schottky: 两者都是指「这个」process 使用的时间,你可以观察一下 02/22 11:36
26F:→ Schottky: user time + system time 小於 real time 02/22 11:36