<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>Ho trovato in linea che anche in python esistono a tutt'oggi buchi nella gestione dei thread.</span></div><div><span>Effettivamente i thread sono un argomento certo e funzionante ma ancora delicato e da sviluppare.</span></div><div><br><span></span></div><div><span>Relativamente al mio programma, gestisco la nascita e la fine dei thread utilizzando un timeout sapientemente impostato in modo tale da non avere troppi o troppi pochi thread al lavoro. Altro non sono riuscito. Ho provato a riscrivere il codice al 100% OO ma ho avuto difficoltà a mandare in output i risultati delle elaborazioni in corso e ho dato tutto ctrl-z per arrivare, cone detto, ad un timeout che mi soddisfi.</span></div><div><br><span></span></div><div><span>Grazie e alla prossima.</span></div><div><span>py.Re*<br></span></div><div><br></div>  <div
 style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font size="2" face="Arial"> <hr size="1">  <b><span style="font-weight:bold;">Da:</span></b> Andrea Francia <andrea@andreafrancia.it><br> <b><span style="font-weight: bold;">A:</span></b> Discussioni generali sul linguaggio Python <python@lists.python.it> <br><b><span style="font-weight: bold;">Cc:</span></b> Remo The Last <py.remothelast@yahoo.it> <br> <b><span style="font-weight: bold;">Inviato:</span></b> Lunedì 21 Maggio 2012 23:04<br> <b><span style="font-weight: bold;">Oggetto:</span></b> Re: [Python] threading.active_count() e suo gemello threading.activeCount()<br> </font> </div> <br><meta http-equiv="x-dns-prefetch-control" content="off"><div id="yiv1182343469"><div class="yiv1182343469gmail_quote">2012/5/21 enrico franchi <span dir="ltr"><<a
 rel="nofollow" ymailto="mailto:enrico.franchi@gmail.com" target="_blank" href="mailto:enrico.franchi@gmail.com">enrico.franchi@gmail.com</a>></span><br><blockquote class="yiv1182343469gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">


2012/5/18 Remo The Last <<a rel="nofollow" ymailto="mailto:py.remothelast@yahoo.it" target="_blank" href="mailto:py.remothelast@yahoo.it">py.remothelast@yahoo.it</a>>:<br>
<br>
> Che mi consigliate?<br>
<br>
1. Abbandonare i thread.<br></blockquote><div><br></div><div>Ciao, lo dici per i thread in generale o per il supporto dei thread in Python?</div><div><br></div></div><div>Grazie</div>-- <br>Andrea Francia <a rel="nofollow" target="_blank" href="http://andreafrancia.it">http://andreafrancia.it</a><br>



</div><meta http-equiv="x-dns-prefetch-control" content="on"><br><br> </div> </div>  </div></body></html>