pg_control_priority.c
/*
 * Set the scheduling priority of the specified process.
 */
Set the scheduling priority of the specified process.
Set the scheduling priority of the specified process .
static void
SetProcessPriority(int pid, int priority, int elevel)
{
	int			save_errno = errno;
	if (setpriority(PRIO_PROCESS, pid, priority) != 0)
		ereport(elevel,
				(errmsg("could not set the scheduling priority of process %d to %d: %m", pid, priority)));
	errno = save_errno;
}
static void SetProcessPriority ( int pid , int priority , int elevel ) { int save_errno = errno ; if ( setpriority ( PRIO_PROCESS , pid , priority ) != 0 ) ereport ( elevel , ( errmsg ( " " , pid , priority ) ) ) ; errno = save_errno ; }
Set the scheduling priority of the specified process.
Set the scheduling priority of the specified process .