Do I have to use threads?

Rodrick Brown rodrick.brown at gmail.com
Wed Jan 6 00:40:39 EST 2010


On Tue, Jan 5, 2010 at 11:26 PM, aditya shukla
<adityashukla1983 at gmail.com>wrote:

> Hello people,
>
> I have 5 directories corresponding 5  different urls .I want to download
> images from those urls and place them in the respective directories.I have
> to extract the contents and download them simultaneously.I can extract the
> contents and do then one by one. My questions is for doing it simultaneously
> do I have to use threads?
>
> Please point me in the right direction.
>
> Threads in python are very easy to work with but not very efficient and for
most cases slower than running multiple processes. Look at
using multiple processes instead of going with threads performance will be
much better.


> Thanks
>
> Aditya
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
>


-- 
[ Rodrick R. Brown ]
http://www.rodrickbrown.com http://www.linkedin.com/in/rodrickbrown
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100106/d4ec25b4/attachment.html>


More information about the Python-list mailing list