Queue peek?

Martin P. Hellwig martin.hellwig at dcuktec.org
Tue Mar 2 14:58:22 EST 2010


On 03/02/10 19:44, MRAB wrote:
<cut>
> information, such as when it was completed, the status (OK or failed),
> etc. You might want to wrap it in a class with locks (mutexes) to ensure
> it's threadsafe.
What actually happens if multiple threads at the same time, write to a 
shared dictionary (Not using the same key)?

I would think that if the hashing part of the dictionary has some sort 
of serialization (please forgive me if I misuse a term) it should 'just 
work'(tm)?

-- 
mph




More information about the Python-list mailing list