[Zope] fairness of request processing

Dieter Maurer dieter@handshake.de
Mon, 8 Jul 2002 20:51:55 +0200


Daniel Mahler writes:
 > ....
 > The test below makes it seem that when hit with a batch of requests,
 > the first 4 request get the 4 worker threads,
 > with 3 waiting on the lock, but when the 1st thread releases the lock,
 > it starts processing another request and reacquires the lock
 > before the other three threads manage to wake up.
 > So the other 3 threads are starved and the first thread processes the
 > bulk of the requests.
You may try a 10 ms sleep after releasing the lock.

Not sure that is will work...


Dieter