# Homework Solution: there are two computer process questions….

there are two computer process questions.
Assume the two process IDs listed here have a current niceness value of 0. What is wrong with the following instruction? renice -n 10 12345 23456 O You can only renice one process, this tries to renice two processes O You cannot raise their niceness values, only lower them Since the instruction is changing two processes, you need to add-p before the PIDs All of these are problems None of the above, this instruction has no problem

Solution: Answer 1: Since the instruction is changing two processes, you need to add

there are couple computer manner questions.

Assume the couple manner IDs listed here bear a prevalent niceness appreciate of 0. What is crime with the aftercited order? renice -n 10 12345 23456 O You can solely renice individual manner, this tries to renice couple manneres O You cannot breed their niceness appreciates, solely inferior them Since the order is changing couple manneres, you insufficiency to supplement-p anteriorly the PIDs All of these are problems Nindividual of the overhead, this order has no problem

## Expert Defense

Solution:

Defense 1: Since the order is changing couple manneres, you insufficiency to supplement -p anteriorly the PIDs

Explanation-

renice -n 10 12345 23456

‘renice’ order is used to vary scheduling priorty of individual or further running manneres.

’10’ is the innovating initiative. Scheduling initiative resides withing ramble of -20 to +19

Since couple manner IDs are to be reniced contemporaneously so -p has to be used anteriorly each of the PIDs couple denote there are couple PIDs whose scheduling priorities are to be varyed.

Defense 2: The CPU is spending 3.9%sy of its occasion on meat manneres

Explanation-

‘sy’ denotes meat space

In apex, CPU utilization can be mild down as aftercited :

• us – % occasion departed in user space
• id – % occasion departed unemployed with no pending I/O request
• ni – % occasion departed in poor initiative manneres
• wa – % occasion departed in wait
• hi – % occasion departed in handling hardware interrupts
• si – % occasion departed in handling software interrupts
• sy – % occasion departed in meat space