Jim Jewett wrote:
> 
> why does it need the lock the whole time?
> Is someone getting known stale data (when you could tell them to
> wait) always OK, but overwriting someone else's change never is?

In a threaded environment, it shouldn't really be
a problem as long as the view of the data is consistent.
It's no different from what would have happened if the
reading thread had got there just a moment sooner,
before the writer got hold of it.

If that's a problem, there should have been some
higher-level synchronisation going on before getting
to that point.

--
Greg
_______________________________________________
Python-3000 mailing list
Python-3000@python.org
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to