<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>itasuke</author_name>
  <author_url>https://blog.hatena.ne.jp/itasuke/</author_url>
  <blog_title>かせきのうさぎさん</blog_title>
  <blog_url>https://itasuke.hatenadiary.org/</blog_url>
  <categories>
    <anon>Python</anon>
  </categories>
  <description>メインスレッドが終了すると、_threadモジュールで作ったスレッドは終了してしまう。 #! python3.3 import _thread import time def func(): ident = _thread.get_ident() print('thread {} starts'.format(ident)) time.sleep(5) print('thread {} ends'.format(ident)) print('main thread starts') _thread.start_new_thread(func, ()) time.sleep(3) print('…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fitasuke.hatenadiary.org%2Fentry%2F20121218%2Fp1&quot; title=&quot; 誰がthreadingで作ったスレッドの後始末をしているのか - かせきのうさぎさん&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>2012-12-18 00:00:00</published>
  <title> 誰がthreadingで作ったスレッドの後始末をしているのか</title>
  <type>rich</type>
  <url>https://itasuke.hatenadiary.org/entry/20121218/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
