While stacks are used in memory management, queues are used for buffering. When you want to print a number of documents, you pass the print requests to the print queue which buffers and prints the first print request first. Another implementation of queues can be used in transport system where the first come first served or first scheduled trip starts first has to be implemented. Queues are also used when you have to prioritize the tasks.