example of multi threads

Stefan Behnel stefan_ml at behnel.de
Wed Jun 23 06:58:28 EDT 2010


Mag Gam, 23.06.2010 12:24:
> I am looking for a simple multi threaded  example.
>
> Lets say I have to ssh to 20 servers and I would like to that in
> parallel. Can someone please provide a an example for that?

Sounds like you want to run background processes, not threads. Take a look 
at the subprocess module.

Stefan




More information about the Python-list mailing list