Queue: Explain how a queue is a priority queue in which arrival time determines priority.
What will be an ideal response?
A queue is a first-in/first-out (FIFO) collection, and as such obeys a first-come, first-served protocol. As a result, a lower arrival time automatically gives an element a higher priority than one with a later arrival time.
Computer Science & Information Technology