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
    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 span computer course questions.

    Assume the span course IDs listed here own a prevalent niceness rate of 0. What is evil-doing with the subjoined counsel? renice -n 10 12345 23456 O You can simply renice undivided course, this tries to renice span coursees O You cannot establish their niceness rates, simply inferior them Since the counsel is changing span coursees, you want to subjoin-p precedently the PIDs All of these are problems Nundivided of the aloft, this counsel has no problem

    Assume the span course IDs listed here own a prevalent niceness rate of 0. What is evil-doing with the subjoined counsel? renice -n 10 12345 23456 O You can simply renice undivided course, this tries to renice span coursees O You cannot establish their niceness rates, simply inferior them Since the counsel is changing span coursees, you want to subjoin-p precedently the PIDs All of these are problems Nundivided of the aloft, this counsel has no problem

    Expert Counterpart

     

    Solution:

    Counterpart 1: Since the counsel is changing span coursees, you want to subjoin -p precedently the PIDs

    Explanation-

    renice -n 10 12345 23456

    ‘renice’ bid is used to vary scheduling priorty of undivided or over general coursees.

    ’10’ is the ststroll control. Scheduling control resides withing stroll of -20 to +19

    Since span course IDs are to be reniced concertedly so -p has to be used precedently each of the PIDs span indicate there are span PIDs whose scheduling priorities are to be varyed.

    Counterpart 2: The CPU is spending 3.9%sy of its occasion on meat coursees

    Explanation-

    ‘sy’ indicates meat space

    In apex, CPU utilization can be docile down as subjoined :

    • us – % occasion departed in user space
    • id – % occasion departed unemployed with no pending I/O request
    • ni – % occasion departed in deep control coursees
    • 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