Queue

برنامه‌نویسی 2 views

Persian equivalent صف

In plain language A queue makes the oldest waiting item available first.

Short definition A standard queue follows first-in, first-out ordering, adding items at the back and removing them from the front.

Detailed explanation and example

If two print jobs are added to a simple queue, the first is taken before the second. A priority queue uses a different ordering rule.

Reference