diff --git a/common/utils/threadPool/thread-pool.c b/common/utils/threadPool/thread-pool.c index 310d8d445e7c544e407184fbba3fc848f8b4e098..84347a88a1d0ff1dae29fa68d9aa8f20bdd2766e 100644 --- a/common/utils/threadPool/thread-pool.c +++ b/common/utils/threadPool/thread-pool.c @@ -150,8 +150,11 @@ void initNamedTpool(char *params,tpool_t *pool, bool performanceMeas, char *name //Configure the thread scheduler policy for Linux // set the thread name for debugging sprintf(pool->allthreads->name,"%s%d_%d",tname,pool->nbThreads,pool->allthreads->coreID); + // we set the maximum priority for thread pool threads (which is close + // but not equal to Linux maximum). See also the corresponding commit + // message; initially introduced for O-RAN 7.2 fronthaul split threadCreate(&pool->allthreads->threadID, one_thread, (void *)pool->allthreads, - pool->allthreads->name, pool->allthreads->coreID, OAI_PRIORITY_RT); + pool->allthreads->name, pool->allthreads->coreID, OAI_PRIORITY_RT_MAX); pool->nbThreads++; }