diff --git a/src/system/libroot/posix/malloc/arch-specific.cpp b/src/system/libroot/posix/malloc/arch-specific.cpp index c03ac403f9..ef780e594f 100644 --- a/src/system/libroot/posix/malloc/arch-specific.cpp +++ b/src/system/libroot/posix/malloc/arch-specific.cpp @@ -317,10 +317,10 @@ hoardUnlock(hoardLockType &lock) void hoardYield(void) { - // A thread's quantum is definitely larger than this, so this is - // an expensive yield function. + // We need to snooze longer than a thread quantum (3ms) to ensure + // real-time threads won't hog the CPU completely // ToDo: we should have a real one in the kernel - snooze(5); + snooze(4000); } } // namespace BPrivate