Design pattern for managing queues and stacks?
问题 Is there a design pattern for managing a queue or a stack? For example, we are looking to manage a list of tasks. These tasks will be added to a group queue, users will then be able to pull off the queue and add them to their personal queue. 回答1: Design patterns can use queues and stacks, but the queues and stacks themselves don't really implement a design pattern, they implement an interface. Queues are typically FIFO while stacks are LIFO. Since many users might be using the data structures