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
.Net VCL for Delphi 1.0.0.0
ASP. NET C# PDF Software 4.5
LinqConnect Professional 4.8
CAD VCL: 2D/3D CAD in Delphi/C++Builder 14
wolfSSL 3.15.7
CAD DLL 14
AnyStock Stock and Financial JS Charts 8.4.2
ODBC Driver for SQLite 2.4
dotConnect for SugarCRM 1.7
dbForge SQL Complete 5.9
dbForge Studio for MySQL 8.0
.Net Runtime Library for Delphi 6.0.4.0
Scimbo 1.64
AnyMap JS Maps 8.4.2
GetOrgChart 2.5.3
Top Code
Cookie Monsters
College Management System Script 1.0.4
3D World (OpenGL walk through city) Script 1.1
Member Login by PHPJabbers 3.2
WETON: Javanese calendar 1.0
Hotel Management CRM 1.0
ASP. NET C# PDF Software 4.5
GUI for fuzzy based Washing Machine 1.0
HTML5 Video Player - jQuery Plugin, Ajax XML 1.0
Huffman Coding and Decoding for Text Compression 1.1
Software Defined Radio Transceiver 1.0.4
eBay Clone 3.0
Faculty Evaluation System 1.1
PHP Point of sale 10.0
LinqConnect Professional 4.8
Top Rated
Paste phpSoftPro 1.4.1
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
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
PHP GZ Blog Script 1.1
ATN Jobs Software 4.0
ATN Mall 2.0
WeBuilder 2015 13.3
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