Re: file write collision consideration

2009-01-22 Thread Gary
It would help to know which version of Python when giving examples... I recollect that so-called mutex operation wasn't actually thread safe when using Python 2.5, but perhaps that was wrong, or subsequent versions have fixed that? -- http://mail.python.org/mailman/listinfo/python-list

file write collision consideration

2009-01-20 Thread RGK
I have a thread that is off reading things some of which will get written into a file while another UI thread manages input from a user. The reader-thread and the UI-thread will both want to write stuff to the same output file. What first comes to mind is that there may be write collisions,

Re: file write collision consideration

2009-01-20 Thread D'Arcy J.M. Cain
On Tue, 20 Jan 2009 10:57:52 -0500 RGK bl...@empty.blank wrote: I have a thread that is off reading things some of which will get written into a file while another UI thread manages input from a user. The reader-thread and the UI-thread will both want to write stuff to the same output

Re: file write collision consideration

2009-01-20 Thread MRAB
RGK wrote: I have a thread that is off reading things some of which will get written into a file while another UI thread manages input from a user. The reader-thread and the UI-thread will both want to write stuff to the same output file. What first comes to mind is that there may be write

Re: file write collision consideration

2009-01-20 Thread RGK
Thanks for the suggestions - sounds like a couple good options, I apprecieate it. Ross. MRAB wrote: RGK wrote: I have a thread that is off reading things some of which will get written into a file while another UI thread manages input from a user. The reader-thread and the UI-thread will

Re: file write collision consideration

2009-01-20 Thread Francesco Bochicchio
On Tue, 20 Jan 2009 11:08:46 -0500, D'Arcy J.M. Cain wrote: On Tue, 20 Jan 2009 10:57:52 -0500 RGK bl...@empty.blank wrote: I have a thread that is off reading things some of which will get written into a file while another UI thread manages input from a user. The reader-thread and the