Java / Concurrent collections
Define poison pill or object in Java collections.
Poison Pill or poison object is a data item placed on the queue and when the consumer reads this item it closes down. Obviously, the poison pill will be last item placed on the queue otherwise the consumer will shut down prematurely.
More Related questions...