<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tamata78</author_name>
  <author_url>https://blog.hatena.ne.jp/tamata78/</author_url>
  <blog_title>気軽に楽しくプログラムと遊ぶ</blog_title>
  <blog_url>https://tamata78.hatenablog.com/</blog_url>
  <categories>
    <anon>Ruby資格取得</anon>
    <anon>Ruby</anon>
  </categories>
  <description>スレッドの作成、終了、停止、例外発生時のスレッドの挙動について確認していきます。 プログラム開始時に生成されるスレッドをメインスレッドと呼ぶ。メインスレッドで 動かすスレッドについて以下より見ていきます。 スレッドの作成 Thread::new、Thread::start、Thread::forkにより新しいスレッドを生成することができます。 puts &quot;create thread&quot; # スレッド作成 t = Thread.new do puts &quot;start thread&quot; # 3秒停止する sleep 3 puts &quot;end thread&quot; end puts &quot;wating for the…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftamata78.hatenablog.com%2Fentry%2F2015%2F10%2F21%2F100000&quot; title=&quot;Ruby Threadクラスの基本 - 気軽に楽しくプログラムと遊ぶ&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>2015-10-21 10:00:00</published>
  <title>Ruby Threadクラスの基本</title>
  <type>rich</type>
  <url>https://tamata78.hatenablog.com/entry/2015/10/21/100000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
