<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>methane</author_name>
  <author_url>https://blog.hatena.ne.jp/methane/</author_url>
  <blog_title>methaneのブログ</blog_title>
  <blog_url>https://methane.hatenablog.jp/</blog_url>
  <categories>
    <anon>python</anon>
  </categories>
  <description>前回は sync worker が uwsgi の置き換えになるかという視点で調べていましたが、次は gthread について調べてみます。 sync worker はシンプルに次のような処理をしていました。 accept (複数socketをlistenしている時は select-&gt;accept) リクエストを受け取る wsgiアプリを実行する レスポンスを返す close gthread は次のような処理になります。 メインスレッド epoll等で listen socket やリクエスト待ちの接続を監視する listen socket の場合: accept してスレッドプールに投げる …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmethane.hatenablog.jp%2Fentry%2F2026%2F08%2F28%2FGunicorn_%25E3%2581%25AE_gthread_%25E3%2581%25A8_freethreading&quot; title=&quot;Gunicorn の gthread と freethreading - methaneのブログ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2026-08-28 21:02:09</published>
  <title>Gunicorn の gthread と freethreading</title>
  <type>rich</type>
  <url>https://methane.hatenablog.jp/entry/2026/08/28/Gunicorn_%E3%81%AE_gthread_%E3%81%A8_freethreading</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
