Created
February 14, 2019 20:28
-
-
Save nateberkopec/7ff32b4271d2092a33fdc8d19a886bfb to your computer and use it in GitHub Desktop.
thread quantum patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/thread_pthread.c b/thread_pthread.c | |
index d8d3184c62..4e28b9a31d 100644 | |
--- a/thread_pthread.c | |
+++ b/thread_pthread.c | |
@@ -175,7 +175,7 @@ static const void *const condattr_monotonic = NULL; | |
/* 100ms. 10ms is too small for user level thread scheduling | |
* on recent Linux (tested on 2.6.35) | |
*/ | |
-#define TIME_QUANTUM_MSEC (100) | |
+#define TIME_QUANTUM_MSEC (10) | |
#define TIME_QUANTUM_USEC (TIME_QUANTUM_MSEC * 1000) | |
#define TIME_QUANTUM_NSEC (TIME_QUANTUM_USEC * 1000) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment