Beginner Threaded file reading access

Aahz aahz at pythoncraft.com
Tue Mar 23 16:01:46 EST 2004


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.
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"usenet imitates usenet"  --Darkhawk



More information about the Python-list mailing list