进程优先级之setpriority系统调用-CSDN博客

网站介绍:unix提供了setpriority系统调用用于设置进程,进程组,用户进程的优先级。long setpriority(int which,int who,int niceval)参数which是PRIO_PROCESS,PRIO_PGRP,PRIO_USER中的一个。#define PRIO_PROCESS 0#define PRIO_PGRP 1#define PRIO_USER