Which of the below is not an example of a queue?
i. persons standing in a line in a movie ticket booking center.
ii. set of programs waiting to get the attention of CPU to get executed.
iii. set of plates in a hotel.
all are examples of a queue.
set of plates piled up in a hotel is an example of stack because new plate will be added or old plate will be removed from only one end. people standing a movie ticket booking center and set of programs waiting in a scheduling line is an example of queue, because new entries will happen at rear(end), where as removal or processing will be done from front.
Back To Top