Add explanatory comments to threads tests.
[pintos-anon] / src / tests / threads / mlfqs-load-1.c
index 652407c669161d28e1c4ebe359193f6088619845..da9972949112f6c84204899b792922fa8d6ffa7f 100644 (file)
@@ -1,3 +1,11 @@
+/* Verifies that a single busy thread raises the load average to
+   0.5 in 38 to 45 seconds.  The expected time is 42 seconds, as
+   you can verify:
+   perl -e '$i++,$a=(59*$a+1)/60while$a<=.5;print "$i\n"'
+
+   Then, verifies that 10 seconds of inactivity drop the load
+   average back below 0.5 again. */
+
 #include <stdio.h>
 #include "tests/threads/tests.h"
 #include "threads/init.h"