Dear Frédéric,

> 2) launching only one thread, and in the run method, do an
> endless loop, 
> pinging and sleeping

Your second idea is also very interesting. I tried and everything is working 
perfectly. The only drawback is the ping process become very slow :) But no 
problem on GUI drawing :)

Previously, i always think that i have to start many threads, each to ping one 
host (or do anything else). 

I note that i have to sleep for several hundreds ms. If i do not sleep, the 
ping become messed up (skipping some hosts, etc). Is it because it run too fast 
(especially for reply host)?

M.


      

_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Reply via email to