From c92b90eb91819f27db75f1bc840624c6b3adb1e9 Mon Sep 17 00:00:00 2001 From: John Sully Date: Fri, 9 Apr 2021 01:05:55 +0000 Subject: [PATCH] DO not set the timethread as high priority, it can starve the server threads Former-commit-id: faeac65371af9d6b6effe0886bcbdefaec24ad6d --- src/server.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/server.cpp b/src/server.cpp index fbf05c8fa..bb0e6edae 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -6471,9 +6471,6 @@ int main(int argc, char **argv) { serverAssert(cserver.cthreads > 0 && cserver.cthreads <= MAX_EVENT_LOOPS); pthread_create(&cserver.time_thread_id, nullptr, timeThreadMain, nullptr); - struct sched_param time_thread_priority; - time_thread_priority.sched_priority = sched_get_priority_max(SCHED_FIFO); - pthread_setschedparam(cserver.time_thread_id, SCHED_FIFO, &time_thread_priority); pthread_attr_t tattr; pthread_attr_init(&tattr);