Do I have to use threads?

Brian J Mingus Brian.Mingus at Colorado.EDU
Wed Jan 6 00:45:14 EST 2010


On Tue, Jan 5, 2010 at 9:36 PM, Philip Semanchuk <philip at semanchuk.com>wrote:

>
> On Jan 5, 2010, at 11:26 PM, aditya shukla 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?
>>
>
> No. You could spawn 5 copies of wget (or curl or a Python program that
> you've written). Whether or not that will perform better or be easier to
> code, debug and maintain depends on the other aspects of your program(s).
>
> bye
> Philip


Obviously, spawning 5 copies of wget is equivalent to starting 5 threads.
The answer is 'yes'.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100105/6e1c37bc/attachment-0001.html>


More information about the Python-list mailing list