<?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: Multiple Threads Testing Idioms In Java</title>
	<atom:link href="http://www.codelord.net/2008/05/06/multiple-threads-testing-idioms-in-java/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.codelord.net/2008/05/06/multiple-threads-testing-idioms-in-java/</link>
	<description>A place a coder rants at...</description>
	<lastBuildDate>Sat, 21 Aug 2010 12:13:46 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Heinz Kabutz</title>
		<link>http://www.codelord.net/2008/05/06/multiple-threads-testing-idioms-in-java/comment-page-1/#comment-5</link>
		<dc:creator>Heinz Kabutz</dc:creator>
		<pubDate>Sat, 10 May 2008 02:04:23 +0000</pubDate>
		<guid isPermaLink="false">http://codedump.wordpress.com/?p=4#comment-5</guid>
		<description>Nice.  We had similar issues with some of the exercises of our Java Specialist Master Course.  There is a bug (in my opinion) in the Condition.await() method, in that it does not mirror the behavior of the Object.wait() method accurately.  If you stop the thread whilst it is doing await(), the thread does not pick up the lock again.  Thus, when you unlock in finally, you end up with IllegalMonitorStateExceptions.

The point is, we saw the same thing go wrong.  It appears to me that JUnit does not wait for the other threads to complete even, because we don&#039;t always see the output from all of these threads.

Anyway, it might also be the IntelliJ plugin that causes this, I have not had the time to investigate this further.</description>
		<content:encoded><![CDATA[<p>Nice.  We had similar issues with some of the exercises of our Java Specialist Master Course.  There is a bug (in my opinion) in the Condition.await() method, in that it does not mirror the behavior of the Object.wait() method accurately.  If you stop the thread whilst it is doing await(), the thread does not pick up the lock again.  Thus, when you unlock in finally, you end up with IllegalMonitorStateExceptions.</p>
<p>The point is, we saw the same thing go wrong.  It appears to me that JUnit does not wait for the other threads to complete even, because we don&#8217;t always see the output from all of these threads.</p>
<p>Anyway, it might also be the IntelliJ plugin that causes this, I have not had the time to investigate this further.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
