John works as a Network Administrator for Perfect Solutions Inc. The company has a Linux-based network. John is working as a root user on the Linux operating system. He is currently working on his C based new traceroute program. Since, many processes are running together on the system, he wants to give the highest priority to the cc command process so that he can test his program, remove bugs, and submit it to the office in time. Which of the following commands will John use to give the highest priority to the cc command process?
According to the scenario, John wants to give the highest priority to the cc command process. For this, he will use the nice command and
change the niceness to -20.
Answer option A is incorrect. The nice -n 19 cc -c *.c & command runs the cc command in the background at a lower priority than the default
priority set by the nice command.
Answer option B is incorrect. This command will run the cc command at a low priority in the background and the workstation is free to run
other commands while the cc command is running.
Answer option D is incorrect. This command will run the cc command at a low priority but it will not run the command in the background. The
workstation will not be free to run other commands while the cc command is running.
Currently there are no comments in this discussion, be the first to comment!