Do I have to use threads?
philip at semanchuk.com
Wed Jan 6 14:24:54 CET 2010
On Jan 6, 2010, at 12:45 AM, Brian J Mingus wrote:
> 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
>>> 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
>>> do I have to use threads?
>> No. You could spawn 5 copies of wget (or curl or a Python program
>> 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
> Obviously, spawning 5 copies of wget is equivalent to starting 5
> The answer is 'yes'.
Process != thread
More information about the Python-list