multithreading

Aahz aahz at pythoncraft.com
Mon May 20 21:58:43 EDT 2002


In article <mailman.1021921968.9210.python-list at python.org>,
David LeBlanc <whisper at oz.net> wrote:
>
>Lock, Semaphore and friends mentioned in the pythondoc (2.2.1) aren't
>atomic? If not, then they're misnamed since atomicity is a required
>property of such operations.

What Peter meant is that Queue is the only single atomic operation for
passing data between threads.  Lock & Semaphore are atomic, but they
aren't by themselves sufficient for passing data.
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"In the end, outside of spy agencies, people are far too trusting and
willing to help."  --Ira Winkler



More information about the Python-list mailing list