if ((status = apr_threadattr_create(new_attr, pool)) == SWITCH_STATUS_SUCCESS) {
#ifndef WIN32
- (*new_attr)->priority = SWITCH_PRI_NORMAL;
+ (*new_attr)->priority = SWITCH_PRI_LOW;
#endif
}
const char *rt = "/proc/sys/kernel/sched_rt_runtime_us";
char data[] = "-1\n";
struct sched_param sched = { 0 };
- sched.sched_priority = SWITCH_PRI_REALTIME;
+ sched.sched_priority = SWITCH_PRI_LOW;
if (sched_setscheduler(0, SCHED_RR, &sched)) {
sched.sched_priority = 0;
if (sched_setscheduler(0, SCHED_OTHER, &sched)) {