The 'nice' command:[7.9]
In unix the priority of a process is measured by using integers from 0 to 39. A 0(zero) indicate highest priority, 39 indicate lowest priority.
COMMANDS:
1. $nice big_program ->(runs big_program with a priority value reduced by 10 units )
2.$nice-19 big_program ->(runs big_program with a priority value of 39)
3.$nice-19 big_program& ->(this lowest the priority and runs in the background)
4.#nice--12 big_program ->(runs big_program with a priority value of 8.# char. will be issued by the supervisor)
The 'time' command:[7.10]
This command is used to know the resource usage. It runs a program or command given argument,generates the timing statistics about the program run and directs this statistics report to the standard output.The statistics consist of elapsed time between invocation and termination, the User CPU time and System CPU time. This assess the efficiency of the program.
COMMANDS:
1. $find / -name makefilex -print
THE OUTPUT IS :
real 0m14.509s
user 0m0.150s
sys 0m0.390s
$
In unix the priority of a process is measured by using integers from 0 to 39. A 0(zero) indicate highest priority, 39 indicate lowest priority.
COMMANDS:
1. $nice big_program ->(runs big_program with a priority value reduced by 10 units )
2.$nice-19 big_program ->(runs big_program with a priority value of 39)
3.$nice-19 big_program& ->(this lowest the priority and runs in the background)
4.#nice--12 big_program ->(runs big_program with a priority value of 8.# char. will be issued by the supervisor)
The 'time' command:[7.10]
This command is used to know the resource usage. It runs a program or command given argument,generates the timing statistics about the program run and directs this statistics report to the standard output.The statistics consist of elapsed time between invocation and termination, the User CPU time and System CPU time. This assess the efficiency of the program.
COMMANDS:
1. $find / -name makefilex -print
THE OUTPUT IS :
real 0m14.509s
user 0m0.150s
sys 0m0.390s
$
No comments:
Post a Comment