<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>MARISHI</author_name>
  <author_url>https://blog.hatena.ne.jp/MARISHI/</author_url>
  <blog_title>duost</blog_title>
  <blog_url>https://marishi.hatenadiary.org/</blog_url>
  <categories>
    <anon>Univ</anon>
  </categories>
  <description>あるメモリ位置へ値をセットするコンピュータの（ハードウェア側？）の命令。 セットする前に値をテストする。 値をテストし、ダメだったら値を書き込まない。OKだったら値を書き込む。 これらの動作をアトミックに行う。 他のプロセサのメモリアクセスを排除した状態で行う？？？ （ここらの記述がググった限りちょこまか違ってよー分からん。） （wikipediaさんの記述だと、他のプロセサはテストアンドセットが実行できないとの記述だが、 他のメモリアクセスを行う命令は実行出来るんか？それだと意味なくね？みたいな。） どんなー時に使うかというと、セマフォとかmutex。 クリティカルセクション実行中の札を立て…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmarishi.hatenadiary.org%2Fentry%2F20100805%2F1281017538&quot; title=&quot;テスト・アンド・セット命令 - duost&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>2010-08-05 23:12:18</published>
  <title>テスト・アンド・セット命令</title>
  <type>rich</type>
  <url>https://marishi.hatenadiary.org/entry/20100805/1281017538</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
