Search
Code Directory
 ASP
 ASP.NET
 C/C++
 CFML
 CGI/PERL
 Delphi
 Development
 Flash
 HTML
 Java
 JavaScript
 Pascal
 PHP
 Python
 SQL
 Tools
 Visual Basic & VB.NET
 XML
New Code
OrgChart JS 4.9.7
iScripts CyberMatch 1.3.3
AnyGantt JS Gantt Charts 8.7.0
Database Workbench Pro 5.6.8
Devart SSIS Data Flow Components 1.10.1
SentiMask SDK Trial 2.0.193121
dbForge Studio for SQL Server 5.8
ODBC Driver for ASE 2.1.2
The C# OCR Library 4.4.0
ODBC Driver for xBase 2.1
Rapid PHP 2018 15.5
IBDAC 6.4
Online Course Booking Script 1.3.3
Job Portal Script 1.3.2
The C# PDF Library 5.2
Top Code
Azizi search engine script PHP 4.1.10
Classy script, Classy Website Clone 2.0.4
DTMF Encoder/Decoder with GUI using FFT,goertzel,Filter Banks 1.0
MLM Unilevel Plan Script 1.0.4
College Management System Script 1.0.4
MATLAB Support Package for Arduino (aka ArduinoIO Package) 1.0
Devart SSIS Data Flow Components 1.0
Newest MySQL manual in HTML Help (.chm) 4.1.1-alpha
CAD Import VCL 9.1
2D/3D CAD Import VCL
Database Workbench Pro 5.6.8
Auto2Fit Pro 3.0
Ticket Booking Software – PHP Scripts mall 1.0.2
The C# PDF Library 1.0
SW Test Automation Framework 32
Top Rated
VisualNEO Web 2018.12.15
Azizi search engine script PHP 4.1.10
Paste phpSoftPro 1.4.1
Extreme Injector 3.7
Deals and Discounts Website Script 1.0.2
ADO.NET Provider for ExactTarget 1.0
Solid File System OS edition 5.1
Classified Ad Lister 1.0
Aglowsoft SQL Query Tools 8.2
Invoice Manager by PHPJabbers 3.0
ICPennyBid Penny Auction Script 4.0
PHP Review Script 1.0
ATN Resume Finder 2.0
ATN Site Builder 3.0
Availability Booking Calendar PHP 1.0
Queue with tagged items 
File ID: 65187






Queue with tagged items 
Download Queue with tagged items http://code.activestate.com/recipes/576632-queue-with-tagged-items/?in=lang-pythonReport Error Link
License: Freeware
Downloads: 26
Submit Rating:
Queue with tagged items  Description
Description: I needed multiple consumers to retrieve data from a queue fed by one producer. Could not find a good working code for that, so I implemented my own queue. Docstring should describe how this works.

Two notes:
1) my code uses multiprocessing code, but in this module, the Lock and Condition could be easily replaced with the same objects from the threading module
2) the attached test uses syntax for "nose" testing package, I did not convert it to doctest or UnitTest.

License: Freeware

Related: consumer, Producer, queue, Tag

O/S:Windows

Downloads: 26



More Similar Code

You may have needed a priority queue with the ability to change the priorities of elements that were in the queue. This recipe solves this problem in an efficient way.



This module provides a simple criteria-based priority queue with "priority cascading".



A scheduled queue is a queue with priorities that are scheduled. It is not preemtitive, higher priorities are not
executed always before than lower priorities (only more often).



The Comment Moderation module gives an alternative view to your approval queue with all actions directly available from the comment moderation view. This helps to analyse comments one by one, take action and move on to the next comment in the...



Widget that displays on your WordPress search results page with similar items from your Flickr, YouTube, and Twitter feeds.

For example, someone searching for "cat" on your site might see Flickr photos you've tagged with...



I saw a lot of implementations that doesn't work on list with repeated items.
For example: [3,3,"hello","hello"]
This recipe show such function that works on any list.
(update 6/29/06) added generator version...



GilliGan is a framework to generate and handle html. The main focus is to build forms with their items, like text inputs, checkboxes, date selects etc. and process this data with databases, email, filesystem and ftp.

One feature for...



GilliGan is a framework to generate and handle html. The main focus is to build forms with their items, like text inputs, checkboxes, date selects etc. and process this data with databases, email, filesystem and ftp.

One feature for...



The WMS (Website Management System) is designed to allow a web site administratror to easily run a website with little hassle. The WMS is based on the structure of the internet, hyperlinked pages each with different items on them.



Balmsoft Polyglot contains componenets for localization your Delphi application. It contains IDE extension for generation files with localizable items and components for applying files with localization. You can translate any localizable property...

User Review for Queue with tagged items
- required fields
     

Please enter text on the image