To find out how efficiently a program a used the system resources, which command is used?

Đăng Khánh

New member
To find out how efficiently a program a used the system resources, which command is used?
A. sys
B. time
C. crontab
D. daemon
 
Answer: b
Explanation: When there are multiple versions of a program and we want to find out how efficiently they’ve used the system resources we can use the time command. The time command accepts the entire command line to be timed as its argument. It executes the command and also displays the time usage on the terminal. For example,
Code:
$ time sort -o  emp.txt  invoi.txt
real    0m19.811s    // time elapsed from the invocation of command until its termination
user    0m1.851s    // time spent in executing itself
sys    0m9.761s    // time spent by the kernel in doing work on behalf of the user process
 

Tìm kiếm

Back
Top