Answer:
B. all other answer
Step-by-step explanation:
A Queue is a first in first out data structure. So it is useful for scheduling access to a shared resource. The shared resource can vary based on real world scenarios. For example:
Each of the following real world events could be simulated using a queue:
- restaurant reservation list ( shared resource: restaurant table)
- shared network printer ( shared resource: network printer)
- bank line ( shared resource : bank service)