A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2001-April/073427.html below:

bug with Queue in Python 1.5.2

bug with Queue in Python 1.5.2 bug with Queue in Python 1.5.2Alexandre Fayolle alf at leo.logilab.fr
Fri Apr 20 10:44:57 EDT 2001
Hello,

I think I encountered a bug in Queue using python 1.5.2, and I was 
wondering if it was still around in python 2.x.

I have a Queue with infinite size that sometimes raises QueueFull 
exceptions when I use put_nowait.

The reason is that the fsema lock is acquired before the mutex lock, 
and it is possible for instance with 2 threads to have the first one 
take fsema and mutex, and then the second one trying to acquire fsema, 
and failing immediately (because it's in nowait mode), which causes a 
Full Queue exception. 

Is this still the case with later releases of Python?

TIA

Alexandre Fayolle
-- 
http://www.logilab.com 
Narval is the first software agent available as free software (GPL).
LOGILAB, Paris (France).

More information about the Python-list mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4