next up previous contents
Next: Structural Patterns Up: Utility Classes Previous: Sets

   
Queue

The Queue class is widely used in producer - consumer communication. A producer puts items in the queue, and a consumer removes them from the queue. When there are no items available, a consumer is blocked (unless it specified a maximum timeout to wait for items to become available). Addition and removal of items is synchronized, i.e. no two entities (e.g. consumer and producer, or one producer and another producer) can be in the queue at the same time.



Bela Ban
1998-08-06