Queue (computer science)


Idea of ​​the queue

Queue - a linear data structure in which new data is added at the end of the queue and data is retrieved at the beginning of the queue for further processing (FIFO, First In, First Out, output).

A special queue modification is a priority queue - each of the data in it is assigned a priority that modifies the order of the subsequent execution. This means that the first one is not necessarily the one that expects the longest but the ones with the highest priority.

The queue is first encountered in situations involving various types of event handling. Especially in operating systems, a priority queue is used to allocate hardware resources to run processes.

The opposite of a queue is a stack, a LIFO (Last In, First Out) buffer, where the last data entered is the last.



wiki

Comments

Popular posts from this blog

Association of Jewish handicrafts "Jad Charuzim"

Grouping Red Arrows

Catechism of Polish Child