>>>>> "Bastian" == Bastian Hammer <[EMAIL PROTECTED]> writes:

    Bastian> Now I have to make sure, that both threads are
    Bastian> synchronal, 1 thread edits something and the other is
    Bastian> blocked until the first thread is ready.

    Bastian> Isnīt it a good idea to do this with a semaphore?

Semaphore will do, but this is a classical use case for
threading.Lock.

There should be lots of stuff regarding locks (or more googleably,
"mutexes") on the net.

-- 
Ville Vainio   http://tinyurl.com/2prnb
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to