191k views
2 votes
Which of the following real world events could be simulated using a queue

A.restaurant reservation list

B.all other amswers

C.shared network printer

D.bank line

User Kernael
by
7.9k points

1 Answer

4 votes

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)

User Mike Shea
by
8.6k points