1 file, multiple threads
Aahz
aahz at pythoncraft.com
Fri Nov 26 09:04:21 EST 2004
In article <41a7000c$0$16489$4d4ebb8e at news.nl.uu.net>,
Guyon Morée <gumuz at NO_looze_SPAM.net> wrote:
>
>If I have multiple threads reading from the same file, would that be a
>problem?
>
>if yes, how would I solve it?
>
>Let's say I want to take it a step further and start writing to 1 file form
>multiple threads, how would I solve that?
Make a new thread just for dealing with the file and post messages to it
using Queue.
--
Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/
WiFi is the SCSI of the 21st Century -- there are fundamental technical
reasons for sacrificing a goat. (with no apologies to John Woods)
More information about the Python-list
mailing list