These guidelines are called niceness or nice value. The Linux niceness scale goes from -20 to 19. The lower the number the more priority that task gets. If the niceness value is high number like 19 the task will be set to the lowest priority and the CPU will process it whenever it gets a chance. The default nice value is zero.
发布评论
评论(1)
我猜你正在 Linux 上运行这个。快速谷歌给了我这个:
更改 Linux 进程的优先级
创建具有特定优先级的新流程:
因此,在您的情况下:
I guess you are running this on Linux. A quick Google gave me this:
Changing Priority on Linux Processes
Create new process with a specific priority:
So, in your case: