Skip to content

Instantly share code, notes, and snippets.

@nateberkopec
Created February 14, 2019 20:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nateberkopec/7ff32b4271d2092a33fdc8d19a886bfb to your computer and use it in GitHub Desktop.
Save nateberkopec/7ff32b4271d2092a33fdc8d19a886bfb to your computer and use it in GitHub Desktop.
thread quantum patch
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