<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Nobuhisa</author_name>
  <author_url>https://blog.hatena.ne.jp/Nobuhisa/</author_url>
  <blog_title>Nobuhisa's diary</blog_title>
  <blog_url>https://nobuhisa.hatenablog.jp/</blog_url>
  <categories>
    <anon>F#</anon>
  </categories>
  <description>個人的にご質問をいただいたので、簡単なサンプルを書いてみました。 「たくさんの処理を並列に実行したいのだけど、同時に走るスレッド数は制限したい」というプログラムです。 let worker (id: int) = async { System.Console.WriteLine(&quot;Worker:{0}&quot;, id) // 並列環境ではprintfnは使用しない do! Async.Sleep(1500) }[&lt;EntryPoint&gt;] let main argv = List.init 15 worker // 15個の処理をしたい |&gt; List.chunkBySize 3 // 3つずつ並列…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnobuhisa.hatenablog.jp%2Fentry%2F20170309%2Fp1&quot; title=&quot;実行制限付きの並列計算 - Nobuhisa&amp;#39;s diary&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>2017-03-09 00:00:00</published>
  <title>実行制限付きの並列計算</title>
  <type>rich</type>
  <url>https://nobuhisa.hatenablog.jp/entry/20170309/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
