<?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: The Parable of the Bathroom</title>
	<atom:link href="http://karlagius.com/2008/03/23/the-parable-of-the-bathroom/feed/" rel="self" type="application/rss+xml" />
	<link>http://karlagius.com/2008/03/23/the-parable-of-the-bathroom/</link>
	<description>It&#039;s not rocket science</description>
	<lastBuildDate>Sun, 06 May 2012 06:53:58 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Rahat</title>
		<link>http://karlagius.com/2008/03/23/the-parable-of-the-bathroom/comment-page-1/#comment-31</link>
		<dc:creator>Rahat</dc:creator>
		<pubDate>Wed, 17 Dec 2008 08:19:49 +0000</pubDate>
		<guid isPermaLink="false">http://karlagius.wordpress.com/?p=13#comment-31</guid>
		<description>Its really a well organized simple example to have a grip on locking concept. Thankx for this stuff man.</description>
		<content:encoded><![CDATA[<p>Its really a well organized simple example to have a grip on locking concept. Thankx for this stuff man.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Finds of the Week - March 30, 2008 &#187; Chinh Do</title>
		<link>http://karlagius.com/2008/03/23/the-parable-of-the-bathroom/comment-page-1/#comment-15</link>
		<dc:creator>Finds of the Week - March 30, 2008 &#187; Chinh Do</dc:creator>
		<pubDate>Tue, 01 Apr 2008 05:01:04 +0000</pubDate>
		<guid isPermaLink="false">http://karlagius.wordpress.com/?p=13#comment-15</guid>
		<description>[...] &quot;k&quot; explains deadlocking with The Parable of the Bathroom. [...]</description>
		<content:encoded><![CDATA[<p>[...] &quot;k&quot; explains deadlocking with The Parable of the Bathroom. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: W&#246;chentliche Rundablage: WPF, Silverlight 2, ASP.NET MVC, .NET 3.5&#8230; &#124; Code-Inside Blog</title>
		<link>http://karlagius.com/2008/03/23/the-parable-of-the-bathroom/comment-page-1/#comment-20</link>
		<dc:creator>W&#246;chentliche Rundablage: WPF, Silverlight 2, ASP.NET MVC, .NET 3.5&#8230; &#124; Code-Inside Blog</dc:creator>
		<pubDate>Mon, 31 Mar 2008 19:04:24 +0000</pubDate>
		<guid isPermaLink="false">http://karlagius.wordpress.com/?p=13#comment-20</guid>
		<description>[...] The Parable of the Bathroom [...]</description>
		<content:encoded><![CDATA[<p>[...] The Parable of the Bathroom [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: karlagius</title>
		<link>http://karlagius.com/2008/03/23/the-parable-of-the-bathroom/comment-page-1/#comment-19</link>
		<dc:creator>karlagius</dc:creator>
		<pubDate>Wed, 26 Mar 2008 21:07:39 +0000</pubDate>
		<guid isPermaLink="false">http://karlagius.wordpress.com/?p=13#comment-19</guid>
		<description>AW: Very well put indeed :D
Raffaele: Hi, really glad you liked it :)</description>
		<content:encoded><![CDATA[<p>AW: Very well put indeed <img src='http://karlagius.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /><br />
Raffaele: Hi, really glad you liked it <img src='http://karlagius.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AW</title>
		<link>http://karlagius.com/2008/03/23/the-parable-of-the-bathroom/comment-page-1/#comment-18</link>
		<dc:creator>AW</dc:creator>
		<pubDate>Wed, 26 Mar 2008 19:22:38 +0000</pubDate>
		<guid isPermaLink="false">http://karlagius.wordpress.com/?p=13#comment-18</guid>
		<description>You might say if B timed out waiting for the lock on the toilet paper, B would be left in an &#039;unclean state&#039;.

Toilet humour is the cheapest kind.</description>
		<content:encoded><![CDATA[<p>You might say if B timed out waiting for the lock on the toilet paper, B would be left in an &#8216;unclean state&#8217;.</p>
<p>Toilet humour is the cheapest kind.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raffaele Bianco</title>
		<link>http://karlagius.com/2008/03/23/the-parable-of-the-bathroom/comment-page-1/#comment-17</link>
		<dc:creator>Raffaele Bianco</dc:creator>
		<pubDate>Wed, 26 Mar 2008 12:36:17 +0000</pubDate>
		<guid isPermaLink="false">http://karlagius.wordpress.com/?p=13#comment-17</guid>
		<description>Great job dude,

It&#039;s a good idea to use a lock because I can&#039;t imagine A and B using the toilet paper at the same time :)</description>
		<content:encoded><![CDATA[<p>Great job dude,</p>
<p>It&#8217;s a good idea to use a lock because I can&#8217;t imagine A and B using the toilet paper at the same time <img src='http://karlagius.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Reflective Perspective - Chris Alcock &#187; The Morning Brew #59</title>
		<link>http://karlagius.com/2008/03/23/the-parable-of-the-bathroom/comment-page-1/#comment-16</link>
		<dc:creator>Reflective Perspective - Chris Alcock &#187; The Morning Brew #59</dc:creator>
		<pubDate>Wed, 26 Mar 2008 08:07:07 +0000</pubDate>
		<guid isPermaLink="false">http://karlagius.wordpress.com/?p=13#comment-16</guid>
		<description>[...] The Parable of the Bathroom - A nice set of analogies for different styles of lock - good reading if you are new to this kind of thing [...]</description>
		<content:encoded><![CDATA[<p>[...] The Parable of the Bathroom &#8211; A nice set of analogies for different styles of lock &#8211; good reading if you are new to this kind of thing [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: karlagius</title>
		<link>http://karlagius.com/2008/03/23/the-parable-of-the-bathroom/comment-page-1/#comment-30</link>
		<dc:creator>karlagius</dc:creator>
		<pubDate>Wed, 26 Mar 2008 06:39:46 +0000</pubDate>
		<guid isPermaLink="false">http://karlagius.wordpress.com/?p=13#comment-30</guid>
		<description>:D Yes, it could have been, couldn&#039;t it? :D
Thanks Sam.</description>
		<content:encoded><![CDATA[<p> <img src='http://karlagius.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  Yes, it could have been, couldn&#8217;t it? <img src='http://karlagius.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /><br />
Thanks Sam.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sam</title>
		<link>http://karlagius.com/2008/03/23/the-parable-of-the-bathroom/comment-page-1/#comment-29</link>
		<dc:creator>Sam</dc:creator>
		<pubDate>Wed, 26 Mar 2008 02:57:16 +0000</pubDate>
		<guid isPermaLink="false">http://karlagius.wordpress.com/?p=13#comment-29</guid>
		<description>Awesome... and not nearly as disgusting as I thought it might be :)</description>
		<content:encoded><![CDATA[<p>Awesome&#8230; and not nearly as disgusting as I thought it might be <img src='http://karlagius.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: karlagius</title>
		<link>http://karlagius.com/2008/03/23/the-parable-of-the-bathroom/comment-page-1/#comment-28</link>
		<dc:creator>karlagius</dc:creator>
		<pubDate>Tue, 25 Mar 2008 08:24:14 +0000</pubDate>
		<guid isPermaLink="false">http://karlagius.wordpress.com/?p=13#comment-28</guid>
		<description>Hi mind,

Locking the stall door assumes there is a stall to lock, which is not implied in the example. However, what you suggest is a good example of reorganizing code and resources to reduce chances of a deadlock. We&#039;d also be assuming that B only needs the urinal though, which may or may not be the case :D

Regarding your second statement, B holding a lock on the door before the roll is available is what causes the deadlock in the first place, since A cannot release the roll without entering the bathroom.</description>
		<content:encoded><![CDATA[<p>Hi mind,</p>
<p>Locking the stall door assumes there is a stall to lock, which is not implied in the example. However, what you suggest is a good example of reorganizing code and resources to reduce chances of a deadlock. We&#8217;d also be assuming that B only needs the urinal though, which may or may not be the case <img src='http://karlagius.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>Regarding your second statement, B holding a lock on the door before the roll is available is what causes the deadlock in the first place, since A cannot release the roll without entering the bathroom.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

