Semaphore or what should I use?
Bastian Hammer
webmaster at haustierworld.de
Wed Dec 1 08:21:02 EST 2004
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
More information about the Python-list
mailing list