grocery_stocker schrieb:
On May 3, 1:16 pm, "Diez B. Roggisch" <de...@nospam.web.de> wrote:
grocery_stocker schrieb:

Let's say there is a new zip file with updated information every 30
minutes on a remote website. Now, I wanna connect to this website
every 30 minutes, download the file, extract the information, and then
have the program search the file search for certain items.
Would it be better to use threads to break this up? I have one thread
download the data and then have another to actually process the data .
Or would it be better to use fork?
Neither. Why do you think you need concurrency at all?


Okay, here is what was going through my mind. I'm a 56k dialup modem.
What happens it takes me 15 minutes to download the file? Now let's
say during those 15 minutes, the program needs to parse the data in
the existing file.

Is this an exercise in asking 20 hypothetical questions?

Getting concurrency right isn't trivial, so if you absolute don't need this, don't do it.

Diez
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to