From e93173cb6444e79e3d88318b3864496cb1f3bb96 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Tue, 20 Dec 2005 22:54:51 +0000 Subject: [PATCH] Clarify that the idle thread does not receive recent_cpu. --- doc/44bsd.texi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/44bsd.texi b/doc/44bsd.texi index 1747277..d066ee7 100644 --- a/doc/44bsd.texi +++ b/doc/44bsd.texi @@ -165,7 +165,8 @@ From the opposite direction, @math{f(t)} decays to weight @math{w} at The initial value of @var{recent_cpu} is 0 in the first thread created, or the parent's value in other new threads. Each time a timer interrupt occurs, @var{recent_cpu} is incremented by 1 for the running -thread only. In addition, once per second the value of @var{recent_cpu} +thread only, unless the idle thread is running. In addition, once per +second the value of @var{recent_cpu} is recalculated for every thread (whether running, ready, or blocked), using this formula: -- 2.30.2