Mail Archives: cygwin/2005/02/13/10:17:23
Nick Coghlan wrote:
> Christopher Faylor wrote:
> Of course, I don't actually know if this is a related problem or not.
> I'm hoping Chris can check it easily, since it happens with the standard
> Cygwin Python, not just with the version I built from Python's current CVS.
I took the obvious step of running that test script directly, playing with the
number of threads spawned, and the number of files created by each thread, as
well as adding some more print statements to the script to see where it was hanging.
Command lines looked like (with thread and file counts filled in):
$ python /lib/python2.4/test/test_threadedtempfile.py -t <threads> -f <files>
The results weren't particularly deterministic, beyond a general 'more threads,
more files' -> 'more likely to hang'. 10 & 10 seemed to do it fairly effectively
although even that would occasionally succeed (the default is 20 & 20).
When it *did* hang, it was with a number of threads successfully opening their
files on an iteration, with the remainder of the threads locking up attempting
to open a new temporary file. The next time around, the remaining threads would
hang while attempting to open the temporary file.
The main script hangs because it is waiting for the threads to terminate.
Regards,
Nick.
--
Nick Coghlan | ncoghlan AT email DOT com | Brisbane, Australia
---------------------------------------------------------------
http://boredomandlaziness.skystorm.net
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
- Raw text -