<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>m-hiyama</author_name>
  <author_url>https://blog.hatena.ne.jp/m-hiyama/</author_url>
  <blog_title>檜山正幸のキマイラ飼育記 (はてなBlog)</blog_title>
  <blog_url>https://m-hiyama.hatenablog.com/</blog_url>
  <categories>
    <anon>雑記／備忘</anon>
  </categories>
  <description>java.util.concurrentパッケージにBlockingQueue&lt;E&gt;（Eは型パラメータ）というクラスがあるんですね。おー、これは便利。BlockingQueueはキュー（先入れ先出しバッファ）ですが、バッファが空のときや満杯のときはスレッドを停止して待たせること（ブロッキング）を自動的にやってくれます。ということは、Unixのパイプと同じ機能を持ちますね。僕は、stdinとstdout、getcharとputcharを使うプログラムがとっても気にいっていたので、BlockingQueueで再現してみます。まずは、1文字単位入出力のインターフェース： // InOut.java …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fm-hiyama.hatenablog.com%2Fentry%2F20071214%2F1197598785&quot; title=&quot;Java BlockingQueueで遊ぶ：パイプラインごっこ - 檜山正幸のキマイラ飼育記 (はてなBlog)&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>2007-12-14 11:19:45</published>
  <title>Java BlockingQueueで遊ぶ：パイプラインごっこ</title>
  <type>rich</type>
  <url>https://m-hiyama.hatenablog.com/entry/20071214/1197598785</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
