Beginner Threaded file reading access

Andy Robinson andy at reportlab.com
Wed Mar 24 17:06:31 EST 2004


aahz at pythoncraft.com (Aahz) wrote in message news:<c3q8jq$aj4$1 at panix3.panix.com>...
> In article <2835a96b.0403230909.35be2b7b at posting.google.com>,
> Jesse Noller <jnoller at reference-info.com> wrote:
> >
> >With 5 threads - I need each of the 5 threads to read 1 line from the
> >file (but never the same line) and perform the processing. I never
> >want the thread count to exceed the 5 threads defined.
> 
> Bad idea.  Never access the same external resource from multiple
> threads.

Unless each line was a URL which needed a test suite running
against it, or the name of a file needing significant independent
processing?

- Andy Robinson



More information about the Python-list mailing list