<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Java concurrency refcard!</title>
	<atom:link href="http://tech.puredanger.com/index.php/2009/07/06/java-concurrency-refcard/feed/" rel="self" type="application/rss+xml" />
	<link>http://tech.puredanger.com/2009/07/06/java-concurrency-refcard/</link>
	<description>Alex Miller&#039;s technical blog</description>
	<lastBuildDate>Wed, 28 Jul 2010 22:41:03 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Alex</title>
		<link>http://tech.puredanger.com/2009/07/06/java-concurrency-refcard/comment-page-1/#comment-170539</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Tue, 14 Jul 2009 06:17:23 +0000</pubDate>
		<guid isPermaLink="false">http://tech.puredanger.com/2009/07/06/java-concurrency-refcard/#comment-170539</guid>
		<description>Thanks Ruben.  You are correct although this is something that should clearly be documented and creates a constraint on any other code that is updating the flag as well.</description>
		<content:encoded><![CDATA[<p>Thanks Ruben.  You are correct although this is something that should clearly be documented and creates a constraint on any other code that is updating the flag as well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ruben</title>
		<link>http://tech.puredanger.com/2009/07/06/java-concurrency-refcard/comment-page-1/#comment-170391</link>
		<dc:creator>Ruben</dc:creator>
		<pubDate>Mon, 13 Jul 2009 10:54:06 +0000</pubDate>
		<guid isPermaLink="false">http://tech.puredanger.com/2009/07/06/java-concurrency-refcard/#comment-170391</guid>
		<description>Hi,

That refcard of yours is truly awesome. One question:

In the example of the &quot;Thread Coordination&quot; section, the boolean instance member &lt;i&gt;flag&lt;/i&gt; does not need to be volatile, does it? AFAIK, the update in &lt;i&gt;change()&lt;/i&gt; is gonna be flushed to main memory and picked up by any subsequent invocation to &lt;i&gt;waitTillChange()&lt;/i&gt; because they are properly synchronized by the monitor associated to &lt;i&gt;lock&lt;/i&gt;.  

Thanks.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>That refcard of yours is truly awesome. One question:</p>
<p>In the example of the &#8220;Thread Coordination&#8221; section, the boolean instance member <i>flag</i> does not need to be volatile, does it? AFAIK, the update in <i>change()</i> is gonna be flushed to main memory and picked up by any subsequent invocation to <i>waitTillChange()</i> because they are properly synchronized by the monitor associated to <i>lock</i>.  </p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.312 seconds -->
