<?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: C Program for Optimal Page Replacement Algorithm</title>
	<atom:link href="http://electrofriends.com/source-codes/software-programs/c/c-program-for-optimal-page-replacement-algorithm/feed/" rel="self" type="application/rss+xml" />
	<link>http://electrofriends.com/source-codes/software-programs/c/c-program-for-optimal-page-replacement-algorithm/</link>
	<description>...bringing innovative minds together</description>
	<lastBuildDate>Mon, 21 May 2012 08:19:10 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: todd</title>
		<link>http://electrofriends.com/source-codes/software-programs/c/c-program-for-optimal-page-replacement-algorithm/comment-page-1/#comment-7332</link>
		<dc:creator>todd</dc:creator>
		<pubDate>Thu, 26 Apr 2012 08:26:27 +0000</pubDate>
		<guid isPermaLink="false">http://electrofriends.com/?p=777#comment-7332</guid>
		<description>the no. of page faults is actually 6....but in the code the initial faults are not counted ie the code is correct thats all i wanna say</description>
		<content:encoded><![CDATA[<p>the no. of page faults is actually 6&#8230;.but in the code the initial faults are not counted ie the code is correct thats all i wanna say</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sarada</title>
		<link>http://electrofriends.com/source-codes/software-programs/c/c-program-for-optimal-page-replacement-algorithm/comment-page-1/#comment-6837</link>
		<dc:creator>sarada</dc:creator>
		<pubDate>Wed, 08 Feb 2012 01:51:30 +0000</pubDate>
		<guid isPermaLink="false">http://electrofriends.com/?p=777#comment-6837</guid>
		<description>than q for the code.................
and no of page faults is not correct.............hav to check
3 is no of frames</description>
		<content:encoded><![CDATA[<p>than q for the code&#8230;&#8230;&#8230;&#8230;&#8230;..<br />
and no of page faults is not correct&#8230;&#8230;&#8230;&#8230;.hav to check<br />
3 is no of frames</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vishnu</title>
		<link>http://electrofriends.com/source-codes/software-programs/c/c-program-for-optimal-page-replacement-algorithm/comment-page-1/#comment-6819</link>
		<dc:creator>vishnu</dc:creator>
		<pubDate>Mon, 06 Feb 2012 11:08:05 +0000</pubDate>
		<guid isPermaLink="false">http://electrofriends.com/?p=777#comment-6819</guid>
		<description>i love you..you really saved my life..you know this really helped me alot</description>
		<content:encoded><![CDATA[<p>i love you..you really saved my life..you know this really helped me alot</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anuja</title>
		<link>http://electrofriends.com/source-codes/software-programs/c/c-program-for-optimal-page-replacement-algorithm/comment-page-1/#comment-6212</link>
		<dc:creator>Anuja</dc:creator>
		<pubDate>Mon, 14 Nov 2011 17:25:28 +0000</pubDate>
		<guid isPermaLink="false">http://electrofriends.com/?p=777#comment-6212</guid>
		<description>thank you soooo much..
u r lifesaver...</description>
		<content:encoded><![CDATA[<p>thank you soooo much..<br />
u r lifesaver&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BiPiN</title>
		<link>http://electrofriends.com/source-codes/software-programs/c/c-program-for-optimal-page-replacement-algorithm/comment-page-1/#comment-6128</link>
		<dc:creator>BiPiN</dc:creator>
		<pubDate>Tue, 01 Nov 2011 17:23:10 +0000</pubDate>
		<guid isPermaLink="false">http://electrofriends.com/?p=777#comment-6128</guid>
		<description>this program work fine
#include
#include
void main()
{
int a[5],b[20],p=0,q=0,m=0,h,k,i,q1=1,j,n;
char f=&#039;F&#039;;
clrscr();
printf(&quot;Enter the number of page:&quot;);
scanf(&quot;%d&quot;,&amp;n);
printf(&quot;enter the number&quot;);
for(i=0;i&lt;n;i++)
scanf(&quot;%d&quot;,&amp;b[i]);
for(i=0;i=3)
q=0;
a[q]=b[i];
q++;
if(q1&lt;3)
{
q1=q;
}
}
printf(&quot;\n%d&quot;,b[i]);
printf(&quot;\t&quot;);
for(h=0;h%c&quot;,f);
m++;
}
p=0;
for(k=0;k&lt;q-1;k++)
{
if(b[i+1]==a[k])
p=1;
}
}
printf(&quot;\nNo of faults:%d&quot;,m);
getch();
}</description>
		<content:encoded><![CDATA[<p>this program work fine<br />
#include<br />
#include<br />
void main()<br />
{<br />
int a[5],b[20],p=0,q=0,m=0,h,k,i,q1=1,j,n;<br />
char f=&#8217;F';<br />
clrscr();<br />
printf(&#8220;Enter the number of page:&#8221;);<br />
scanf(&#8220;%d&#8221;,&amp;n);<br />
printf(&#8220;enter the number&#8221;);<br />
for(i=0;i&lt;n;i++)<br />
scanf(&quot;%d&quot;,&amp;b[i]);<br />
for(i=0;i=3)<br />
q=0;<br />
a[q]=b[i];<br />
q++;<br />
if(q1&lt;3)<br />
{<br />
q1=q;<br />
}<br />
}<br />
printf(&quot;\n%d&quot;,b[i]);<br />
printf(&quot;\t&quot;);<br />
for(h=0;h%c&#8221;,f);<br />
m++;<br />
}<br />
p=0;<br />
for(k=0;k&lt;q-1;k++)<br />
{<br />
if(b[i+1]==a[k])<br />
p=1;<br />
}<br />
}<br />
printf(&quot;\nNo of faults:%d&quot;,m);<br />
getch();<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kamakukka</title>
		<link>http://electrofriends.com/source-codes/software-programs/c/c-program-for-optimal-page-replacement-algorithm/comment-page-1/#comment-5942</link>
		<dc:creator>kamakukka</dc:creator>
		<pubDate>Fri, 30 Sep 2011 16:03:22 +0000</pubDate>
		<guid isPermaLink="false">http://electrofriends.com/?p=777#comment-5942</guid>
		<description>orei chetta na kodakallara , telvakapothe madda musukuni gudda denginchukondi. ante gani me sullilu maa notlo pettalani try cheyadhu..</description>
		<content:encoded><![CDATA[<p>orei chetta na kodakallara , telvakapothe madda musukuni gudda denginchukondi. ante gani me sullilu maa notlo pettalani try cheyadhu..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AKSHAY SAXENA</title>
		<link>http://electrofriends.com/source-codes/software-programs/c/c-program-for-optimal-page-replacement-algorithm/comment-page-1/#comment-4790</link>
		<dc:creator>AKSHAY SAXENA</dc:creator>
		<pubDate>Sun, 10 Apr 2011 06:17:00 +0000</pubDate>
		<guid isPermaLink="false">http://electrofriends.com/?p=777#comment-4790</guid>
		<description>Pllzz lemme know whether the original post can be used for the implementation or not???</description>
		<content:encoded><![CDATA[<p>Pllzz lemme know whether the original post can be used for the implementation or not???</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Surya</title>
		<link>http://electrofriends.com/source-codes/software-programs/c/c-program-for-optimal-page-replacement-algorithm/comment-page-1/#comment-4737</link>
		<dc:creator>Surya</dc:creator>
		<pubDate>Sat, 26 Mar 2011 11:49:44 +0000</pubDate>
		<guid isPermaLink="false">http://electrofriends.com/?p=777#comment-4737</guid>
		<description>the no. of page faults is not 3 
3 is the number of frames</description>
		<content:encoded><![CDATA[<p>the no. of page faults is not 3<br />
3 is the number of frames</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Uday Sagar</title>
		<link>http://electrofriends.com/source-codes/software-programs/c/c-program-for-optimal-page-replacement-algorithm/comment-page-1/#comment-4648</link>
		<dc:creator>Uday Sagar</dc:creator>
		<pubDate>Wed, 16 Mar 2011 16:31:02 +0000</pubDate>
		<guid isPermaLink="false">http://electrofriends.com/?p=777#comment-4648</guid>
		<description>//****this works fine****
#include
#include
void main()
{
  int x,n,q2[10],i,f,j=0,k,pf=0,c=0,h,m,b=0;
char q[10],s[20]  ;
   clrscr();
     printf(&quot;\nenter :\n&quot;);
      scanf(&quot;%s&quot;,&amp;s);
n=strlen(s);
      printf(&quot;enter the no. of frames:\n&quot;);
	  scanf(&quot;%d&quot;,&amp;f);
	s[n+1]=&#039;&#039;;
	 for(i=0;i&lt;f;i++)
		{
		q[i]=&#039;&#039;;
		q2[i]=0;
		}

	 for(i=0;i&lt;n;i++)
	 {
		c=0;
		for(k=0;k&lt;f;k++)
			if(s[i]==q[k])
				c++;
			if(c==0)
			{       if(q[f-1]==&#039;&#039;)	
			        {
				q[j]=s[i];
				pf++;
				j++;
				if(j==f)
					j=0;
			        }
			        else
			       {
				for(k=0;k&lt;f;k++)
				{b=0;
				for(x=i+1;x&lt;n;x++)
				{
					if(b==0)
					if(q[k]==s[x])
					{q2[k]=x;
					b++;
					}
				}
				if(q2[k]==0)
					q2[k]=n;
				}
				j=0;
				for(k=1;k&lt;f;k++)
					if(q2[j]&lt;q2[k])
						j=k;
				for(k=0;k&lt;f;k++)
					q2[k]=0;
				q[j]=s[i];
			                 pf++;
			    }
		}
  for(m=0;m&lt;f;m++)
	printf(&quot;%c  &quot;,q[m]);
	printf(&quot;\n&quot;);
	}
   printf(&quot;\nfinal queue is:\n\t\t&quot;);

  for(m=0;m&lt;f;m++)
	printf(&quot;\n%c&quot;,q[m]);

   printf(&quot;\ntotal pf is: %d&quot;,pf);
   printf(&quot;\npf due to replacement is: %d&quot;,pf-f);
	getch();
 }</description>
		<content:encoded><![CDATA[<p>//****this works fine****<br />
#include<br />
#include<br />
void main()<br />
{<br />
  int x,n,q2[10],i,f,j=0,k,pf=0,c=0,h,m,b=0;<br />
char q[10],s[20]  ;<br />
   clrscr();<br />
     printf(&#8220;\nenter :\n&#8221;);<br />
      scanf(&#8220;%s&#8221;,&amp;s);<br />
n=strlen(s);<br />
      printf(&#8220;enter the no. of frames:\n&#8221;);<br />
	  scanf(&#8220;%d&#8221;,&amp;f);<br />
	s[n+1]=&#8221;;<br />
	 for(i=0;i&lt;f;i++)<br />
		{<br />
		q[i]=&#039;&#039;;<br />
		q2[i]=0;<br />
		}</p>
<p>	 for(i=0;i&lt;n;i++)<br />
	 {<br />
		c=0;<br />
		for(k=0;k&lt;f;k++)<br />
			if(s[i]==q[k])<br />
				c++;<br />
			if(c==0)<br />
			{       if(q[f-1]==&#039;&#039;)<br />
			        {<br />
				q[j]=s[i];<br />
				pf++;<br />
				j++;<br />
				if(j==f)<br />
					j=0;<br />
			        }<br />
			        else<br />
			       {<br />
				for(k=0;k&lt;f;k++)<br />
				{b=0;<br />
				for(x=i+1;x&lt;n;x++)<br />
				{<br />
					if(b==0)<br />
					if(q[k]==s[x])<br />
					{q2[k]=x;<br />
					b++;<br />
					}<br />
				}<br />
				if(q2[k]==0)<br />
					q2[k]=n;<br />
				}<br />
				j=0;<br />
				for(k=1;k&lt;f;k++)<br />
					if(q2[j]&lt;q2[k])<br />
						j=k;<br />
				for(k=0;k&lt;f;k++)<br />
					q2[k]=0;<br />
				q[j]=s[i];<br />
			                 pf++;<br />
			    }<br />
		}<br />
  for(m=0;m&lt;f;m++)<br />
	printf(&quot;%c  &quot;,q[m]);<br />
	printf(&quot;\n&quot;);<br />
	}<br />
   printf(&quot;\nfinal queue is:\n\t\t&quot;);</p>
<p>  for(m=0;m&lt;f;m++)<br />
	printf(&quot;\n%c&quot;,q[m]);</p>
<p>   printf(&quot;\ntotal pf is: %d&quot;,pf);<br />
   printf(&quot;\npf due to replacement is: %d&quot;,pf-f);<br />
	getch();<br />
 }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yassine</title>
		<link>http://electrofriends.com/source-codes/software-programs/c/c-program-for-optimal-page-replacement-algorithm/comment-page-1/#comment-4307</link>
		<dc:creator>Yassine</dc:creator>
		<pubDate>Sat, 19 Feb 2011 11:27:34 +0000</pubDate>
		<guid isPermaLink="false">http://electrofriends.com/?p=777#comment-4307</guid>
		<description>Yes plz help us==&gt; guess some thing wrong !! Number of faults is not true even i 
tryed an other pages&#039;s refenerement but DOESn&#039;t mutch</description>
		<content:encoded><![CDATA[<p>Yes plz help us==&gt; guess some thing wrong !! Number of faults is not true even i<br />
tryed an other pages&#8217;s refenerement but DOESn&#8217;t mutch</p>
]]></content:encoded>
	</item>
</channel>
</rss>

