From f74bb748c9df9e685df420ee476c5dd0fa2f0756 Mon Sep 17 00:00:00 2001 From: rpj Date: Wed, 11 May 2005 07:18:35 +0000 Subject: '' --- tests/stress1.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) { -- cgit v1.2.3