<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yupo5656</author_name>
  <author_url>https://blog.hatena.ne.jp/yupo5656/</author_url>
  <blog_title>memologue</blog_title>
  <blog_url>https://yupo5656.hatenadiary.org/</blog_url>
  <categories>
    <anon>C++</anon>
  </categories>
  <description>複数のスレッドで変数を共有し、さらにその変数に対してread/writeの両方のオペレーションが行われるとき、その変数の操作は、上で書いたとおり、 read/writeともにmutexで保護するべき volatile修飾だけで済ませるのはNG mutexで保護するならvolatile修飾は不要 です。その根拠を、規格を引きながら見てみましょう。 The Open Group Base Specifications Issue 6 の 4.10 Memory Synchronization には、 Applications shall ensure that access to any memo…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyupo5656.hatenadiary.org%2Fentry%2F20040618%2Fp2&quot; title=&quot; マルチスレッドと共有変数 (続き)  --  およびvolatile修飾の必要性 - memologue&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>2004-06-18 00:00:01</published>
  <title> マルチスレッドと共有変数 (続き)  --  およびvolatile修飾の必要性</title>
  <type>rich</type>
  <url>https://yupo5656.hatenadiary.org/entry/20040618/p2</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
