<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>moriyoshi</author_name>
  <author_url>https://blog.hatena.ne.jp/moriyoshi/</author_url>
  <blog_title>moriyoshiの日記</blog_title>
  <blog_url>https://moriyoshi.hatenablog.com/</blog_url>
  <categories>
    <anon>php</anon>
    <anon>MessageQueue</anon>
    <anon>threading</anon>
  </categories>
  <description>Goにできて、PHPにできないはずはない！というわけでやってしまいました。まあ、これにメッセージキューとメッセージスロットを足しただけなんですが。 &lt;?php function sub($i, $ch) { for (;;) { $a = &lt;- [$ch]; printf(&quot;%d:&quot;, $i); var_dump($a); } } $ch = thread_message_queue_create(); for ($i = 0; $i &lt; 10; $i++) { thread_create('sub', $i, $ch); } $i = 0; for (;;) { [$ch] &lt;- $i++;…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmoriyoshi.hatenablog.com%2Fentry%2F20091114%2F1258204128&quot; title=&quot; PHPにメッセージキューとそれを扱う糖衣構文を実装してみた (「PHPのすべらない話 #3」) - moriyoshiの日記&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>2009-11-14 22:08:48</published>
  <title> PHPにメッセージキューとそれを扱う糖衣構文を実装してみた (「PHPのすべらない話 #3」)</title>
  <type>rich</type>
  <url>https://moriyoshi.hatenablog.com/entry/20091114/1258204128</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
