<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Takachan</author_name>
  <author_url>https://blog.hatena.ne.jp/Takachan/</author_url>
  <blog_title>PG日誌</blog_title>
  <blog_url>https://takap-tech.com/</blog_url>
  <categories>
    <anon>C#</anon>
  </categories>
  <description>C#のセマフォの使い方です。 C#のセマフォは主に以下の2つのシーンで利用します。 同時に一度に実行できるスレッドの数を制限したい 複数のスレッドの進行を同期したい 同時にXXXする数を制限したいという仕様があったときに効果を発揮します。大抵は、共有資源へのアクセス数はN個までのような使い方になると思います。1度に実行できるスレッド数を1つではなく、複数個指定できるため、6本スレッドが待機している状態から3スレッドだけを2回に分けて流す動作が実現できます。 また、特に重要な機能として、名前付きでセマフォを宣言した場合、異なるプロセスからも同じ資源を使うことができます。このためマルチプロセスかつ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakap-tech.com%2Fentry%2F2017%2F09%2F11%2F231631&quot; title=&quot;System.Threading.Semaphoreの使い方 - PG日誌&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://cdn-ak.f.st-hatena.com/images/fotolife/T/Takachan/20170911/20170911225413.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-09-11 23:16:31</published>
  <title>System.Threading.Semaphoreの使い方</title>
  <type>rich</type>
  <url>https://takap-tech.com/entry/2017/09/11/231631</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
