Threads and racing conditions

2007-08-21 Thread Flavio Preto
it possible that in a read, the method return a value that is not an old or a new value? In other words, is it possible that a 'read' return (due to a 'write' at the same time by another thread) an invalid value that was never supposed to be there? Thanks, Flavio Preto -- ht

Re: preferred windows text editor?

2007-05-09 Thread Flavio Preto
I use VIM here too. Mainly because i always switch from Windows to Linux and using the same text editor is a way to avoid getting crazy. []'s Preto On 9 May 2007 15:21:41 -0700, BartlebyScrivener <[EMAIL PROTECTED]> wrote: On May 9, 1:26 pm, "Looney, James B" <[EMAIL PROTECTED]> wrote: > I'm

Re: Newbie prob: How to write a file with 3 threads?

2007-05-06 Thread Flavio Preto
Is it not possible to acomplish this with a token-based algorithm? With 3 Threads: A, B and C Thread A start with Token. Thread with the token writes the byte and send the token to the next Or python has any issues to a file object shared among a few threads? []'s Flavio On 5/6/07, Marc 'Blac

PyGTK and Window Size

2007-05-03 Thread Flavio Preto
Hi, Currently i am developing a python script that will be executed in Gnome. This script uses the PyGTK library, however i have a question: How can I make my application to remember the last window size when it was closed? This behavior is natural for the majority of Gnome applications (i think)