<?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>
    <anon>ネタ</anon>
  </categories>
  <description>少し前に Interlocked を使った排他制御の記事を書きましたがこれと SpinWait という極小時間待機向けの待機機能を使って lock に代わる排他制御処理を実装してみたいと思います。 前に書いた記事はこれ ↓ 【C#】Interlockedを使って同時実行数を制限する - PG日誌 確認環境 Windows11 VisualStudio 2022 AMD Ryzen 9 5900X（12コア24スレッド） .NET 8（C# 12） BenchmarkDotNet（0.15.8） 実装例 各々を実装して、最後に100万回実行してベンチーマークを取得します。 処理条件ですが 1つ1…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakap-tech.com%2Fentry%2F2026%2F03%2F22%2F182218&quot; title=&quot;【C#】InterlockedとSpinWaitで排他制御を実装する - 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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2026-03-22 18:22:18</published>
  <title>【C#】InterlockedとSpinWaitで排他制御を実装する</title>
  <type>rich</type>
  <url>https://takap-tech.com/entry/2026/03/22/182218</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
