<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hiratara</author_name>
  <author_url>https://blog.hatena.ne.jp/hiratara/</author_url>
  <blog_title>Pixel Pedals of Tomakomai</blog_title>
  <blog_url>https://hiratara.hatenadiary.jp/</blog_url>
  <categories>
    <anon>技術</anon>
  </categories>
  <description>スレッドをデーモンスレッドにすると、他のスレッド(ユーザスレッド)が全て終了すると勝手に終了する便利なスレッドになるらしいです。知らんかった。で、 Thread th = new Thread(); th.start(); th.setDaemon(true);としたんですがNG。setDaemon()はstart()より先に呼ばないとダメです。後から呼んでも例外も何も出してくれないのがちょっと不親切・・・。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhiratara.hatenadiary.jp%2Fentry%2F20060725%2F1153838234&quot; title=&quot;デーモンスレッド - Pixel Pedals of Tomakomai&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>2006-07-25 23:37:14</published>
  <title>デーモンスレッド</title>
  <type>rich</type>
  <url>https://hiratara.hatenadiary.jp/entry/20060725/1153838234</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
