[Baypiggies] multithreading question
adam at hupp.org
Wed Sep 17 21:01:45 CEST 2008
On Wed, Sep 17, 2008 at 11:40 AM, Shannon -jj Behrens <jjinux at gmail.com> wrote:
> I'm using the queue module to coordinate a bunch of threads. Those
> threads need to log a line to STDOUT. The line is short. Can I count
> on the GIL to make sure that writing a single line to STDOUT is
> atomic, or do I need to be more paranoid?
Isn't the GIL dropped during any IO? In that case I don't think you
can rely on it.
Adam Hupp | http://hupp.org/adam/
More information about the Baypiggies