<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>j5ik2o</author_name>
  <author_url>https://blog.hatena.ne.jp/j5ik2o/</author_url>
  <blog_title>かとじゅんの技術日誌</blog_title>
  <blog_url>https://blog.j5ik2o.me/</blog_url>
  <categories>
    <anon>Scala</anon>
    <anon>並行処理</anon>
  </categories>
  <description>Scalaといえば並行処理、並行処理といえばアクター。ということだけど、そこまで大袈裟ではなくサクっとスレッドを起こしたい時はどうしたらよいか。「プログラミングScala」のP220に「9.4.1 その場限りのスレッド」にopsオブジェクトのspawnメソッドが紹介されています。 import scala.concurrent.ops._ object SpawnExample { def main(args: Array[String]) { println(&quot;start&quot;) spawn { println(&quot;async&quot;) } } } spawnで指定したブロックがスレッドで実行されます。…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.j5ik2o.me%2Fentry%2F20110221%2F1298299871&quot; title=&quot; Scalaでアクターではなくスレッドを操る - かとじゅんの技術日誌&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>http://ecx.images-amazon.com/images/I/51JjJoNYbgL.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2011-02-21 23:51:11</published>
  <title> Scalaでアクターではなくスレッドを操る</title>
  <type>rich</type>
  <url>https://blog.j5ik2o.me/entry/20110221/1298299871</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
