<?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: Peterson&#8217;s n-Process Protocol</title>
	<atom:link href="http://www.alper.net/programming/petersons-n-process-protocol/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.alper.net/programming/petersons-n-process-protocol/</link>
	<description>Eyup Alper Yoney</description>
	<lastBuildDate>Sun, 28 Aug 2011 09:14:25 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Raheel</title>
		<link>http://www.alper.net/programming/petersons-n-process-protocol/comment-page-1/#comment-5</link>
		<dc:creator>Raheel</dc:creator>
		<pubDate>Wed, 25 May 2011 15:34:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.alper.net/?p=171#comment-5</guid>
		<description>Hi
good work done by Mr.Alper...</description>
		<content:encoded><![CDATA[<p>Hi<br />
good work done by Mr.Alper&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alper</title>
		<link>http://www.alper.net/programming/petersons-n-process-protocol/comment-page-1/#comment-4</link>
		<dc:creator>Alper</dc:creator>
		<pubDate>Sat, 27 Mar 2010 17:57:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.alper.net/?p=171#comment-4</guid>
		<description>Hi Peter, 
Thank you so much for your comment. 
You are absolutely right on both; 
- The turn[j] should be turn[i], there was a typo.
- For the second problem, I had missed the case FALSE and the first stage 0. I had been thinking to assign -1 as a not-interested but forgot somehow. Anyway updating the loops is much clear and readable. 
I have corrected the code as you suggested.

Best Regards,
Alper</description>
		<content:encoded><![CDATA[<p>Hi Peter,<br />
Thank you so much for your comment.<br />
You are absolutely right on both;<br />
- The turn[j] should be turn[i], there was a typo.<br />
- For the second problem, I had missed the case FALSE and the first stage 0. I had been thinking to assign -1 as a not-interested but forgot somehow. Anyway updating the loops is much clear and readable.<br />
I have corrected the code as you suggested.</p>
<p>Best Regards,<br />
Alper</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://www.alper.net/programming/petersons-n-process-protocol/comment-page-1/#comment-3</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Fri, 26 Mar 2010 14:23:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.alper.net/?p=171#comment-3</guid>
		<description>Sorry, I wanted to write, that the i-cycle should run from 1 to N-1 and a stages should be 0 to N-1.</description>
		<content:encoded><![CDATA[<p>Sorry, I wanted to write, that the i-cycle should run from 1 to N-1 and a stages should be 0 to N-1.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://www.alper.net/programming/petersons-n-process-protocol/comment-page-1/#comment-2</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Fri, 26 Mar 2010 14:21:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.alper.net/?p=171#comment-2</guid>
		<description>Hi,

in my humble opinion, there are two significant errors in the code of the n-process solution.

Firstly, in the while cycle, there should be turn[i] instead of turn[j]. That&#039;s because turn is a value associated to a stage, not to a process.

Secondly, I am not very sure if a solution with N-1 stages works. When a process leaves a critical region, it&#039;s stage is being set to FALSE, which is 0. But, when a process tries to enter a critical region, it&#039;s stage is set to 0, as a first try. This implies that processes which aren&#039;t interested to enter a critical region can block processes that are interested (in the first condition of the while cycle). In my opinion, there should be stages 0 to N, and the i-cycle should run from 1 to N. This would avoid such not so good situations.

Sincerely, 
Peter.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>in my humble opinion, there are two significant errors in the code of the n-process solution.</p>
<p>Firstly, in the while cycle, there should be turn[i] instead of turn[j]. That&#8217;s because turn is a value associated to a stage, not to a process.</p>
<p>Secondly, I am not very sure if a solution with N-1 stages works. When a process leaves a critical region, it&#8217;s stage is being set to FALSE, which is 0. But, when a process tries to enter a critical region, it&#8217;s stage is set to 0, as a first try. This implies that processes which aren&#8217;t interested to enter a critical region can block processes that are interested (in the first condition of the while cycle). In my opinion, there should be stages 0 to N, and the i-cycle should run from 1 to N. This would avoid such not so good situations.</p>
<p>Sincerely,<br />
Peter.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

