<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Queue on Python Dev BR</title>
    <link>https://python.dev.br/tags/queue/</link>
    <description>Recent content in Queue on Python Dev BR</description>
    <generator>Hugo</generator>
    <language>pt-br</language>
    <lastBuildDate>Wed, 02 Dec 2026 01:15:39 +0000</lastBuildDate>
    <atom:link href="https://python.dev.br/tags/queue/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Módulo queue em Python: Queue, LifoQueue e PriorityQueue</title>
      <link>https://python.dev.br/blog/python-queue-fila-thread-safe/</link>
      <pubDate>Wed, 02 Dec 2026 01:13:00 +0000</pubDate>
      <guid>https://python.dev.br/blog/python-queue-fila-thread-safe/</guid>
      <description>&lt;p&gt;&lt;strong&gt;O módulo &lt;code&gt;queue&lt;/code&gt; entrega filas thread-safe prontas: &lt;code&gt;Queue&lt;/code&gt; (FIFO) para produtor–consumidor, &lt;code&gt;LifoQueue&lt;/code&gt; (pilha), &lt;code&gt;PriorityQueue&lt;/code&gt; (menor prioridade primeiro) e &lt;code&gt;SimpleQueue&lt;/code&gt; (FIFO enxuta sem &lt;code&gt;maxsize&lt;/code&gt;/&lt;code&gt;join&lt;/code&gt;).&lt;/strong&gt; Se a busca é &lt;em&gt;&amp;ldquo;python queue&amp;rdquo;&lt;/em&gt;, &lt;em&gt;&amp;ldquo;queue.Queue&amp;rdquo;&lt;/em&gt; ou &lt;em&gt;&amp;ldquo;fila thread-safe python&amp;rdquo;&lt;/em&gt;, este guia mostra &lt;code&gt;put&lt;/code&gt;/&lt;code&gt;get&lt;/code&gt; com timeout, &lt;code&gt;join&lt;/code&gt;/&lt;code&gt;task_done&lt;/code&gt;, backpressure e quando escolher &lt;code&gt;deque&lt;/code&gt;, &lt;code&gt;heapq&lt;/code&gt; ou &lt;code&gt;asyncio.Queue&lt;/code&gt; — no mesmo espírito dos guias de &lt;a href=&#34;https://python.dev.br/blog/python-threading-threadpoolexecutor/&#34;&gt;threading&lt;/a&gt;, &lt;a href=&#34;https://python.dev.br/blog/python-heapq-fila-prioridade/&#34;&gt;heapq&lt;/a&gt; e &lt;a href=&#34;https://python.dev.br/algoritmos/pilhas-filas-python/&#34;&gt;pilhas e filas&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;h2 id=&#34;por-que-o-módulo-queue-existe&#34;&gt;Por que o módulo queue existe&lt;/h2&gt;&#xA;&lt;p&gt;Três situações se repetem em automações, scrapers e backends:&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
