What is the default nice level when a process is started using the nice command?
Click on the arrows to vote for the correct answer
A. B. C. D.B
The "nice" command in Linux is used to change the priority of a process. It allows users to adjust the CPU scheduling priority of a process so that the operating system schedules it with a lower or higher priority than other processes. This can be useful for running CPU-intensive tasks without affecting the performance of other processes.
By default, when a process is started using the "nice" command, it is assigned a nice value of 0. The nice value can range from -20 to +19, with a lower nice value indicating a higher priority. A process with a nice value of -20 is the highest priority, while a process with a nice value of +19 is the lowest priority.
If a user wants to run a process with a higher priority, they can use the "nice" command to set a lower nice value for the process. For example, to run a process with a nice value of -10, the user can use the command "nice -n -10 command" where "command" is the name of the process they want to run.
Similarly, if a user wants to run a process with a lower priority, they can use the "nice" command to set a higher nice value for the process. For example, to run a process with a nice value of +10, the user can use the command "nice -n +10 command".
In summary, the default nice level when a process is started using the "nice" command is 0.