<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.omnivision.website/index.php?action=history&amp;feed=atom&amp;title=4.1.1.4_Queues_%28FIFO%2C_Priority_Queues%29</id>
	<title>4.1.1.4 Queues (FIFO, Priority Queues) - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.omnivision.website/index.php?action=history&amp;feed=atom&amp;title=4.1.1.4_Queues_%28FIFO%2C_Priority_Queues%29"/>
	<link rel="alternate" type="text/html" href="https://wiki.omnivision.website/index.php?title=4.1.1.4_Queues_(FIFO,_Priority_Queues)&amp;action=history"/>
	<updated>2026-07-03T22:59:49Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://wiki.omnivision.website/index.php?title=4.1.1.4_Queues_(FIFO,_Priority_Queues)&amp;diff=207&amp;oldid=prev</id>
		<title>Mr. Goldstein: Created page with &quot;=== 4.1.1.4 Queues: First In, First Out (FIFO) === Now, imagine a line of people waiting for a roller coaster. The first person who gets in line is the first person to get on the ride. A &#039;&#039;&#039;queue&#039;&#039;&#039; in computer science is just like that!  It follows a rule called &#039;&#039;&#039;FIFO&#039;&#039;&#039;, which stands for &#039;&#039;&#039;First In, First Out&#039;&#039;&#039;. The first item you put &#039;&#039;in&#039;&#039; the queue is always the first item to come &#039;&#039;out&#039;&#039;.  * &#039;&#039;&#039;Adding items to a queue is called &quot;enqueuing.&quot;&#039;&#039;&#039; (Like joining the...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.omnivision.website/index.php?title=4.1.1.4_Queues_(FIFO,_Priority_Queues)&amp;diff=207&amp;oldid=prev"/>
		<updated>2025-07-09T14:37:10Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;=== 4.1.1.4 Queues: First In, First Out (FIFO) === Now, imagine a line of people waiting for a roller coaster. The first person who gets in line is the first person to get on the ride. A &amp;#039;&amp;#039;&amp;#039;queue&amp;#039;&amp;#039;&amp;#039; in computer science is just like that!  It follows a rule called &amp;#039;&amp;#039;&amp;#039;FIFO&amp;#039;&amp;#039;&amp;#039;, which stands for &amp;#039;&amp;#039;&amp;#039;First In, First Out&amp;#039;&amp;#039;&amp;#039;. The first item you put &amp;#039;&amp;#039;in&amp;#039;&amp;#039; the queue is always the first item to come &amp;#039;&amp;#039;out&amp;#039;&amp;#039;.  * &amp;#039;&amp;#039;&amp;#039;Adding items to a queue is called &amp;quot;enqueuing.&amp;quot;&amp;#039;&amp;#039;&amp;#039; (Like joining the...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=== 4.1.1.4 Queues: First In, First Out (FIFO) ===&lt;br /&gt;
Now, imagine a line of people waiting for a roller coaster. The first person who gets in line is the first person to get on the ride. A &amp;#039;&amp;#039;&amp;#039;queue&amp;#039;&amp;#039;&amp;#039; in computer science is just like that!&lt;br /&gt;
&lt;br /&gt;
It follows a rule called &amp;#039;&amp;#039;&amp;#039;FIFO&amp;#039;&amp;#039;&amp;#039;, which stands for &amp;#039;&amp;#039;&amp;#039;First In, First Out&amp;#039;&amp;#039;&amp;#039;. The first item you put &amp;#039;&amp;#039;in&amp;#039;&amp;#039; the queue is always the first item to come &amp;#039;&amp;#039;out&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Adding items to a queue is called &amp;quot;enqueuing.&amp;quot;&amp;#039;&amp;#039;&amp;#039; (Like joining the end of the line)&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Removing items from a queue is called &amp;quot;dequeuing.&amp;quot;&amp;#039;&amp;#039;&amp;#039; (Like the person at the front of the line getting on the ride)&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Examples of Queues in real life:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
** A printer queue: The first document sent to the printer is the first one that gets printed.&lt;br /&gt;
** Customer service lines: The first caller in line is the first one to be helped.&lt;br /&gt;
&lt;br /&gt;
==== Priority Queues ====&lt;br /&gt;
Sometimes, in a line, certain people get to go first, even if they weren&amp;#039;t first in line. Think of an emergency room at a hospital: the most urgent cases are seen first, regardless of when they arrived. This is like a &amp;#039;&amp;#039;&amp;#039;priority queue&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
In a priority queue, each item has a &amp;quot;priority&amp;quot; level. Items with higher priority get to come out of the queue &amp;#039;&amp;#039;before&amp;#039;&amp;#039; items with lower priority, even if the lower-priority items arrived first. If two items have the same priority, then the FIFO rule (first in, first out) usually applies to them.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Example:&amp;#039;&amp;#039;&amp;#039; A hospital emergency room, or tasks in a computer&amp;#039;s operating system where some tasks are more important than others.&lt;br /&gt;
&lt;br /&gt;
==== Bibliography for Queues ====&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Kiddle:&amp;#039;&amp;#039;&amp;#039; [https://kids.kiddle.co/Stack_(data_structure) Data structure Facts for Kids] &lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;High Speed Training:&amp;#039;&amp;#039;&amp;#039; [https://www.highspeedtraining.co.uk/hub/fifo-food-storage/ Using a FIFO Food Storage System] | Guidance &amp;amp; Free Checklist&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;State Food Safety:&amp;#039;&amp;#039;&amp;#039; [https://www.statefoodsafety.com/Resources/Resources/april-cartoon-first-in-first-out-fifo April Cartoon: First In, First Out (FIFO)]&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;LMU Computer Science:&amp;#039;&amp;#039;&amp;#039; [https://cs.lmu.edu/~ray/notes/pqueues/ Priority Queues]&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;GeeksforGeeks:&amp;#039;&amp;#039;&amp;#039; [https://www.geeksforgeeks.org/dsa/priority-queue-set-1-introduction/ Introduction to Priority Queue]&lt;/div&gt;</summary>
		<author><name>Mr. Goldstein</name></author>
	</entry>
</feed>