# 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

## Expert Answer

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

there are couple computer way questions.

Assume the couple way IDs listed here accept a general niceness treasure of 0. What is evil-doing with the forthcoming counsel? renice -n 10 12345 23456 O You can merely renice single way, this tries to renice couple wayes O You cannot train their niceness treasures, merely inferior them Since the counsel is changing couple wayes, you want to gather-p antecedently the PIDs All of these are problems Nsingle of the aloft, this counsel has no problem

## Expert Retort

Solution:

Retort 1: Since the counsel is changing couple wayes, you want to gather -p antecedently the PIDs

Explanation-

renice -n 10 12345 23456

‘renice’ bid is used to vary scheduling priorty of single or further floating wayes.

’10’ is the novel control. Scheduling control resides withing collocate of -20 to +19

Since couple way IDs are to be reniced unitedly so -p has to be used antecedently each of the PIDs couple enact there are couple PIDs whose scheduling priorities are to be varyed.

Retort 2: The CPU is spending 3.9%sy of its opportunity on meat wayes

Explanation-

‘sy’ enacts meat space

In apex, CPU utilization can be subjugated down as forthcoming :

• us – % opportunity departed in user space
• id – % opportunity departed indolent with no pending I/O request
• ni – % opportunity departed in abject control wayes
• wa – % opportunity departed in wait
• hi – % opportunity departed in handling hardware interrupts
• si – % opportunity departed in handling software interrupts
• sy – % opportunity departed in meat space