diff options
author | rpj <rpj> | 2005-05-11 07:18:35 +0000 |
---|---|---|
committer | rpj <rpj> | 2005-05-11 07:18:35 +0000 |
commit | f74bb748c9df9e685df420ee476c5dd0fa2f0756 (patch) | |
tree | ad810c4d5e024d477452806f6e9cd26cf431073f /tests | |
parent | 5c2167b8b1116fbc53dff7bfebf241e2418ce57a (diff) |
''
Diffstat (limited to 'tests')
-rw-r--r-- | tests/stress1.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/stress1.c b/tests/stress1.c index b8d1c77..68d2ed7 100644 --- a/tests/stress1.c +++ b/tests/stress1.c @@ -155,7 +155,8 @@ masterThread (void * arg) * We are attempting to send the signal close to when the slave * is due to timeout. We feel around by adding some [non-random] dither. * - * with dither added, sleep time range is 2*timeout peak-to-peak centred on timeout, + * dither is in the range 2*timeout peak-to-peak + * sleep time is the average of timeout plus dither. * e.g. * if timeout = 10 then dither = 20 and * sleep millisecs is: 5 <= ms <= 15 @@ -163,6 +164,8 @@ masterThread (void * arg) * The bias value attempts to apply some negative feedback to keep * the ratio of timeouts to signals taken close to 1:1. * bias changes more slowly than dither so as to average more. + * + * Finally, if abs(bias) exceeds timeout then timeout is incremented. */ if (signalsSent % timeout == 0) { |