From: Ben Pfaff Date: Tue, 20 Dec 2005 22:54:51 +0000 (+0000) Subject: Clarify that the idle thread does not receive recent_cpu. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=01fc397d8f2428ec58c36a987d475cc6791cfca6;p=pintos-anon Clarify that the idle thread does not receive recent_cpu. --- 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: