i++ in Python?
Skip Montanaro
skip at pobox.com
Fri Jul 19 10:02:57 EDT 2002
otis> I don't like the fact that if 'j' is some kind of a global counter
otis> variable, and I'm dealing with multiple threads, it is then, I
otis> believe, possible for 2 or more threads to execute i = j at the
otis> same time (i.e. before 'j' had the chance to increase).
That's what locks are for.
--
Skip Montanaro
skip at pobox.com
consulting: http://manatee.mojam.com/~skip/resume.html
More information about the Python-list
mailing list