How do I implement my own advanced Producer/Consumer scenario?
问题 NOTE: i did a complete rework of my question. you can see the original question via the change-history. i'm in the need of a "mighty" queue, which provides following functionalities: i have a certain scope for a group of objects. that means that Group A , Group B , ... will have their own queue i'm filling a queue in a group-scoped thread Thread A (Producer) i'm reading a queue in a group-scoped thread Thread B (Consumer) so i will have following scenarios: there is and will be no item in the