25,421 views
1 votes
1 votes

Which one of the following is an application of Queue Data Structure?

A

When a resource is shared among multiple consumers.

B

When data is transferred asynchronously (data not necessarily received at same rate as sent) between two processes

C

Load Balancing

D

all above

1 Answer

2 votes
2 votes

1) When a resource is shared among multiple consumers. Examples include CPU scheduling, Disk Scheduling.
2) When data is transferred asynchronously (data not necessarily received at same rate as sent) between two processes. Examples include IO Buffers, pipes, file IO, etc.

3) The application of queue in load balancing is a bit difficult to understand but it used for this purpose too.
Hence the answer should be all of these 

Related questions

0 votes
0 votes
1 answer
4
Abhrajyoti00 asked Oct 29, 2022
741 views
Can there be “Stack Overflow” in Linked list Implementation of stack? If Yes, how?