projects
/
pintos-anon
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
87167c2
)
Clarify that the idle thread does not receive recent_cpu.
author
Ben Pfaff
<blp@cs.stanford.edu>
Tue, 20 Dec 2005 22:54:51 +0000
(22:54 +0000)
committer
Ben Pfaff
<blp@cs.stanford.edu>
Tue, 20 Dec 2005 22:54:51 +0000
(22:54 +0000)
doc/44bsd.texi
patch
|
blob
|
history
diff --git
a/doc/44bsd.texi
b/doc/44bsd.texi
index 1747277264aa489c905caaf6dc69fdaddc61a99d..d066ee7f6806ed579db59095572818173d5bc7a8 100644
(file)
--- 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
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:
is recalculated for every thread (whether running, ready, or blocked),
using this formula: