Queues

Stacks and queues are both used to store data until it is ready to be used. Queues are used in buffers for temporary storage of data e.g. the keyboard buffer. They are also used by the operating system for scheduling processes. Uses in applications are harder to find.

Follow the links to the programs demonstrating three different implementations of queues. Our tutorial on object-oriented Pascal demonstrates how you can use an inbuilt queue class.

Programming - a skill for life!

Introduction to lists (including arrays of records), linked lists, stacks and queues