From b3ece51199fabb88de72873b48c3d8b2b6c39c2e Mon Sep 17 00:00:00 2001 From: Varun kumar Date: Sat, 3 Nov 2018 23:11:16 +0530 Subject: [PATCH] added uses of queue (#20730) * added uses of queue * fixed formatting, placement --- guide/english/cplusplus/queue/index.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/guide/english/cplusplus/queue/index.md b/guide/english/cplusplus/queue/index.md index c98c7e6dbe..68cf30bc11 100644 --- a/guide/english/cplusplus/queue/index.md +++ b/guide/english/cplusplus/queue/index.md @@ -16,6 +16,11 @@ The data type you store within a queue goes within angle brackets next to the qu ![alt text](https://github.com/mohammadaziz313/helloworld/blob/master/Fifo_queue.png "FIFO Queue Enqueue and Dequeue Example") +### Uses of Queue +- When data is transferred asynchronously between two processes. eg. IO Buffers, pipes,file IO etc. +- When a resource is shared among multiple consumers. Examples include CPU scheduling, Disk scheduling. +- In print spooling, documents are loaded into a buffer and afterward the printer puls them off the buffer at its own rate. + ### Queue Operations The queue container supports the following operations: