[Twisted-Python] flow testThreaded thingy

Clark C. Evans cce at clarkevans.com
Fri Jun 27 13:42:09 EDT 2003

On Fri, Jun 27, 2003 at 01:21:27PM +0200, Wari Wahab wrote:
| Matthias Urlichs wrote:
| >This seems to be exactly the sort of almost-intractable timing-dependent
| >problem which gives threading in general a well-deserved reputation for
| >bugginess.  :-/
| Oh btw, before you do more digging, I've tested the testThreaded thing 
| again on a single CPU machine, and the result is pass everytime. I think 
| this is more of a dual CPU issue, where out of ten times I runned 
| twisted.test.test_flow, only one time it passes, and the rest of the 
| test hangs on testThreaded.

This could explain why it is a bit harder to produce.  Anyway, I 
re-thought the logic and the current CVS version should be much
cleaner, as I'm more careful about modifying shared variables only
in the main thread (split process in two, one chunk per thread)

Could you give it one more round-about?



More information about the Twisted-Python mailing list