<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kakts</author_name>
  <author_url>https://blog.hatena.ne.jp/kakts/</author_url>
  <blog_title>kakts-log</blog_title>
  <blog_url>https://kakts.dev/</blog_url>
  <categories>
    <anon>c</anon>
    <anon>linux</anon>
  </categories>
  <description>概要 CにおいてPthread(POSIX Thread library)ライブラリを使い、pthread_create()によりスレッドの作成をした後、別のスレッドからpthread_join()を実行し、作成したスレッドの終了を待ち、終了状態を得ることが可能です。 場合によっては、作成したスレッドの終了状態を得る必要がない場合もあります。 この場合はスレッドの終了状態が残り続けるよりも、システム側が終了したスレッドを自動的に破棄する方がよいです。 そこで、pthread_detach()を実行することで、スレッドをデタッチ、つまりスレッドの終了状態を破棄することができます。 ここでは、Pt…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkakts.dev%2Fentry%2F2023%2F11%2F21%2F000826&quot; title=&quot;C: Pthreadによるスレッド作成とデタッチ - kakts-log&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>2023-11-21 00:08:26</published>
  <title>C: Pthreadによるスレッド作成とデタッチ</title>
  <type>rich</type>
  <url>https://kakts.dev/entry/2023/11/21/000826</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
