I tried to change priority of process with "nice" command, but function return me a error because only root can make it. The same problem if I try to do it by code:
memset(&schedp, 0, sizeof(schedp));
schedp.sched_priority = par->prio;
sched_setscheduler(0, SCHED_FIFO, &schedp);
is there a way to change priority of process or thread with user different than root???