Half-OT: Threading Question

Andrea Gavana wrote:

Hi All,

   sorry if the message is a bit off-topic, please don't kick my a**
for this. I have this GUI, and the user can select one (or more) input
file. For every file, I start 4/5 threads (depending on the file) that
perform different actions (scan related files, calculate results and
so on).

This may be a case where an asynchronous approach would work better. Take a look at asyncore in the Python library, and/or Twisted (http://twistedmatrix.com/trac/). It'll take some, uhh, twisting to get your mind around it, but the results might be worth the effort.

···

--
Don Dwiggins
Advanced Publishing Technology