<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>niqman</author_name>
  <author_url>https://blog.hatena.ne.jp/niqman/</author_url>
  <blog_title>快適iPhone生活</blog_title>
  <blog_url>https://nikmaniphonelife.hatenadiary.com/</blog_url>
  <categories>
  </categories>
  <description>殆どメモなんですが、Xbeeの制御コードをPerlで書いているせいで、問題が起きましたのでその対応策を書いておきます。 以下のようにPerlで名前付きPipeでメッセージを待つと、CPUパワーの殆どを吸い取られます。topコマンドで確認すると、80-90%近くPerlに使われます。 open FIFO, $fifoPath or die $!; while(my $msg=FIFO &gt;){ } なので、FIFO &gt; が空の状態の時はCPUバワーが食わないような待ち方をしないといけません。 ちなみに、Rubyで以下のようなコードを書いても問題ありません。 Ruby側でちゃんとブロックしてくれます…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnikmaniphonelife.hatenadiary.com%2Fentry%2Farchive_39&quot; title=&quot;Perl - 名前付きPipeでメッセージを受け取る時の注意 - 快適iPhone生活&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>2014-05-16 01:43:27</published>
  <title>Perl - 名前付きPipeでメッセージを受け取る時の注意</title>
  <type>rich</type>
  <url>https://nikmaniphonelife.hatenadiary.com/entry/archive_39</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
