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 brace computer regularity questions.

    Assume the brace regularity IDs listed here keep a prevalent niceness applift of 0. What is evil-doing with the subjoined order? renice -n 10 12345 23456 O You can solely renice single regularity, this tries to renice brace regularityes O You cannot lift their niceness appraises, solely inferior them Since the order is changing brace regularityes, you insufficiency to subjoin-p precedently the PIDs All of these are problems Nsingle of the aloft, this order has no problem

    Assume the brace regularity IDs listed here keep a prevalent niceness applift of 0. What is evil-doing with the subjoined order? renice -n 10 12345 23456 O You can solely renice single regularity, this tries to renice brace regularityes O You cannot lift their niceness appraises, solely inferior them Since the order is changing brace regularityes, you insufficiency to subjoin-p precedently the PIDs All of these are problems Nsingle of the aloft, this order has no problem

    Expert Counterpart

     

    Solution:

    Counterpart 1: Since the order is changing brace regularityes, you insufficiency to subjoin -p precedently the PIDs

    Explanation-

    renice -n 10 12345 23456

    ‘renice’ charge is used to substitute scheduling priorty of single or more prevalent regularityes.

    ’10’ is the strove control. Scheduling control resides withing rove of -20 to +19

    Since brace regularity IDs are to be reniced simultaneously so -p has to be used precedently each of the PIDs brace denote there are brace PIDs whose scheduling priorities are to be substituteed.

    Counterpart 2: The CPU is spending 3.9%sy of its interval on wood regularityes

    Explanation-

    ‘sy’ denotes wood space

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

    • us – % interval elapsed in user space
    • id – % interval elapsed inactive with no pending I/O request
    • ni – % interval elapsed in stunted control regularityes
    • wa – % interval elapsed in wait
    • hi – % interval elapsed in handling hardware interrupts
    • si – % interval elapsed in handling software interrupts
    • sy – % interval elapsed in wood space