Hi I´m wondering why there are so few examples with Semaphore. Is it obsolete?
I´ve got a Class Data. It offers 2 Threads methods for updating, editing, .. a private dictionary. Now I have to make sure, that both threads are synchronal, 1 thread edits something and the other is blocked until the first thread is ready. Isn´t it a good idea to do this with a semaphore? And if I should use a Semaphore here, could anybody give me an example how it should look like? Everything that I test throws errors :( Thank you :) Bye, Bastian -- http://mail.python.org/mailman/listinfo/python-list