<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ganmacs</author_name>
  <author_url>https://blog.hatena.ne.jp/ganmacs/</author_url>
  <blog_title>memo-mode</blog_title>
  <blog_url>https://ganmacs.hatenablog.com/</blog_url>
  <categories>
    <anon>Ruby</anon>
    <anon>Concurrency</anon>
  </categories>
  <description>Java Concurrency in Practice の 5.5.4 Barrier の話 amzn.to バリア同期とは バリア同期とは、各スレッドの実行の進行具合を合わせるために使用する同期機構のこと。 複数スレッドにまたがった依存関係のある計算(処理)の完了を待って、処理を実行する際に使用する。 たとえば、時間のかかる計算 A と B の処理を C で使用する時、C を実行する前に A と B の終了をバリア同期で待ってから実行するというような使用方法がある。 実装 実際に Ruby で表現すると以下のようになる。 イニシャライズ時に渡された数(n)になるまでそのスレッドを待ち状態に…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fganmacs.hatenablog.com%2Fentry%2F2017%2F04%2F22%2F185526&quot; title=&quot;バリア同期の実装 - memo-mode&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>https://images-fe.ssl-images-amazon.com/images/I/51K%2BRJLKkkL._SL160_.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-04-22 18:55:26</published>
  <title>バリア同期の実装</title>
  <type>rich</type>
  <url>https://ganmacs.hatenablog.com/entry/2017/04/22/185526</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
