<?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 Round Robin	</title>
	<atom:link href="https://studentprojects.in/software-development/c-tutorials/c/c-advanced/c-program-for-round-robin/feed/" rel="self" type="application/rss+xml" />
	<link>https://studentprojects.in/software-development/c-tutorials/c/c-advanced/c-program-for-round-robin/</link>
	<description>Microcontroller projects, Circuit Diagrams, Project Ideas</description>
	<lastBuildDate>Sun, 22 Feb 2015 06:30:13 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.1.7</generator>
	<item>
		<title>
		By: Iqraali		</title>
		<link>https://studentprojects.in/software-development/c-tutorials/c/c-advanced/c-program-for-round-robin/comment-page-1/#comment-83482</link>

		<dc:creator><![CDATA[Iqraali]]></dc:creator>
		<pubDate>Sun, 22 Feb 2015 06:30:13 +0000</pubDate>
		<guid isPermaLink="false">http://studentprojects.in/?p=1124#comment-83482</guid>

					<description><![CDATA[i dont know what is  going here but this program is not correct for round robin scheduling... :/ this is simple calculation of waiting time and turn around time :/]]></description>
			<content:encoded><![CDATA[<p>i dont know what is  going here but this program is not correct for round robin scheduling&#8230; :/ this is simple calculation of waiting time and turn around time :/</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Iqraali		</title>
		<link>https://studentprojects.in/software-development/c-tutorials/c/c-advanced/c-program-for-round-robin/comment-page-1/#comment-83481</link>

		<dc:creator><![CDATA[Iqraali]]></dc:creator>
		<pubDate>Sun, 22 Feb 2015 06:29:54 +0000</pubDate>
		<guid isPermaLink="false">http://studentprojects.in/?p=1124#comment-83481</guid>

					<description><![CDATA[i dont know what going here but this program is not correct for round robin scheduling... :/ this is simple calculation of waiting time and turn around time :/]]></description>
			<content:encoded><![CDATA[<p>i dont know what going here but this program is not correct for round robin scheduling&#8230; :/ this is simple calculation of waiting time and turn around time :/</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: balu		</title>
		<link>https://studentprojects.in/software-development/c-tutorials/c/c-advanced/c-program-for-round-robin/comment-page-1/#comment-39988</link>

		<dc:creator><![CDATA[balu]]></dc:creator>
		<pubDate>Tue, 21 Oct 2014 09:16:57 +0000</pubDate>
		<guid isPermaLink="false">http://studentprojects.in/?p=1124#comment-39988</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://studentprojects.in/software-development/c-tutorials/c/c-advanced/c-program-for-round-robin/comment-page-1/#comment-2890&quot;&gt;Priyanka&lt;/a&gt;.

o/p?]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://studentprojects.in/software-development/c-tutorials/c/c-advanced/c-program-for-round-robin/comment-page-1/#comment-2890">Priyanka</a>.</p>
<p>o/p?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Niki		</title>
		<link>https://studentprojects.in/software-development/c-tutorials/c/c-advanced/c-program-for-round-robin/comment-page-1/#comment-33778</link>

		<dc:creator><![CDATA[Niki]]></dc:creator>
		<pubDate>Wed, 08 Oct 2014 15:57:23 +0000</pubDate>
		<guid isPermaLink="false">http://studentprojects.in/?p=1124#comment-33778</guid>

					<description><![CDATA[If you wish for to grow your knowledge only keep 
visiting this website and be updated with the hottest news update posted here.]]></description>
			<content:encoded><![CDATA[<p>If you wish for to grow your knowledge only keep<br />
visiting this website and be updated with the hottest news update posted here.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Gina		</title>
		<link>https://studentprojects.in/software-development/c-tutorials/c/c-advanced/c-program-for-round-robin/comment-page-1/#comment-32306</link>

		<dc:creator><![CDATA[Gina]]></dc:creator>
		<pubDate>Sun, 05 Oct 2014 11:00:03 +0000</pubDate>
		<guid isPermaLink="false">http://studentprojects.in/?p=1124#comment-32306</guid>

					<description><![CDATA[Thanks for your personal marvelous posting! I certainly enjoyed reading it,
you may be a great author. I will be sure to bookmark your blog 
and will often come back at some point. I want to encourage you to ultimately continue your 
great posts, have a nice evening!]]></description>
			<content:encoded><![CDATA[<p>Thanks for your personal marvelous posting! I certainly enjoyed reading it,<br />
you may be a great author. I will be sure to bookmark your blog<br />
and will often come back at some point. I want to encourage you to ultimately continue your<br />
great posts, have a nice evening!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Harshal		</title>
		<link>https://studentprojects.in/software-development/c-tutorials/c/c-advanced/c-program-for-round-robin/comment-page-1/#comment-4323</link>

		<dc:creator><![CDATA[Harshal]]></dc:creator>
		<pubDate>Sun, 20 Feb 2011 15:45:38 +0000</pubDate>
		<guid isPermaLink="false">http://studentprojects.in/?p=1124#comment-4323</guid>

					<description><![CDATA[#include
#include
#include
int t,n,s,bt[10],ct[10],ta[10],w[10],lat[10],wav,taav;
int allover()
 {
   for(int i=0;i0)
   return 0;
   return 1;
 }
void select(int p)
 {
   w[p]+=t-lat[p];
   if(ct[p]&#062;=s)
   {
     ct[p]-=s;
     t+=s;
   }
 else
  {
    t+=ct[p];
    ct[p]=0;
  }
   if(ct[p]==0)
    ta[p]=t;
   lat[p]=t;
 }
void main()
 {
   int p=0;t=0;taav=0;wav=0;
   clrscr();
   printf(&quot;Enter the number of process : &quot;);
   scanf(&quot;%d&quot;,&#038;n);
   printf(&quot;\n Enter the time slice : &quot;);
   scanf(&quot;%d&quot;,&#038;s);
   printf(&quot;\nEnter the burst time of processes \n &quot;);
   for(int i=0;i&#060;n;i++)
   {
     printf(&#034;\n process %d : &#034;,i+1);
     scanf(&#034;%d&#034;,&#038;bt[i]);
     ct[i]=bt[i];
     lat[i]=0;
   }
 while(!allover())
  {
    if(ct[p]!=0)
   select(p);
   p=(p+1)%n;
  }
 printf(&#034;\n\n Process    Burst time   Wait time    Turn around \n\n&#034;);
 for(i=0;i&#060;n;i++)
  {
    printf(&#034;\n %d\t\t%d\t\t%d\t\t%d&#034;,i+1,bt[i],w[i],ta[i]);
    wav+=w[i];
    taav+=ta[i];
  }
 wav/=n;
 taav/=n;
 printf(&#034;\n\nAverage waiting time : %d &#034;,wav);
 printf(&#034;\n\nAverage turn around time : %d &#034;,taav);
 getch();
}]]></description>
			<content:encoded><![CDATA[<p>#include<br />
#include<br />
#include<br />
int t,n,s,bt[10],ct[10],ta[10],w[10],lat[10],wav,taav;<br />
int allover()<br />
 {<br />
   for(int i=0;i0)<br />
   return 0;<br />
   return 1;<br />
 }<br />
void select(int p)<br />
 {<br />
   w[p]+=t-lat[p];<br />
   if(ct[p]&gt;=s)<br />
   {<br />
     ct[p]-=s;<br />
     t+=s;<br />
   }<br />
 else<br />
  {<br />
    t+=ct[p];<br />
    ct[p]=0;<br />
  }<br />
   if(ct[p]==0)<br />
    ta[p]=t;<br />
   lat[p]=t;<br />
 }<br />
void main()<br />
 {<br />
   int p=0;t=0;taav=0;wav=0;<br />
   clrscr();<br />
   printf(&#8220;Enter the number of process : &#8220;);<br />
   scanf(&#8220;%d&#8221;,&amp;n);<br />
   printf(&#8220;\n Enter the time slice : &#8220;);<br />
   scanf(&#8220;%d&#8221;,&amp;s);<br />
   printf(&#8220;\nEnter the burst time of processes \n &#8220;);<br />
   for(int i=0;i&lt;n;i++)<br />
   {<br />
     printf(&quot;\n process %d : &quot;,i+1);<br />
     scanf(&quot;%d&quot;,&amp;bt[i]);<br />
     ct[i]=bt[i];<br />
     lat[i]=0;<br />
   }<br />
 while(!allover())<br />
  {<br />
    if(ct[p]!=0)<br />
   select(p);<br />
   p=(p+1)%n;<br />
  }<br />
 printf(&quot;\n\n Process    Burst time   Wait time    Turn around \n\n&quot;);<br />
 for(i=0;i&lt;n;i++)<br />
  {<br />
    printf(&quot;\n %d\t\t%d\t\t%d\t\t%d&quot;,i+1,bt[i],w[i],ta[i]);<br />
    wav+=w[i];<br />
    taav+=ta[i];<br />
  }<br />
 wav/=n;<br />
 taav/=n;<br />
 printf(&quot;\n\nAverage waiting time : %d &quot;,wav);<br />
 printf(&quot;\n\nAverage turn around time : %d &quot;,taav);<br />
 getch();<br />
}</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: manish bagwari		</title>
		<link>https://studentprojects.in/software-development/c-tutorials/c/c-advanced/c-program-for-round-robin/comment-page-1/#comment-3525</link>

		<dc:creator><![CDATA[manish bagwari]]></dc:creator>
		<pubDate>Mon, 25 Oct 2010 13:48:36 +0000</pubDate>
		<guid isPermaLink="false">http://studentprojects.in/?p=1124#comment-3525</guid>

					<description><![CDATA[sir this is static could u give me dynamic program for round robbin]]></description>
			<content:encoded><![CDATA[<p>sir this is static could u give me dynamic program for round robbin</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Eric		</title>
		<link>https://studentprojects.in/software-development/c-tutorials/c/c-advanced/c-program-for-round-robin/comment-page-1/#comment-3464</link>

		<dc:creator><![CDATA[Eric]]></dc:creator>
		<pubDate>Tue, 12 Oct 2010 01:55:51 +0000</pubDate>
		<guid isPermaLink="false">http://studentprojects.in/?p=1124#comment-3464</guid>

					<description><![CDATA[Priyanka@: that program was already edited ?i mean it will run sir&#062;]]></description>
			<content:encoded><![CDATA[<p>Priyanka@: that program was already edited ?i mean it will run sir&gt;</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Priyanka		</title>
		<link>https://studentprojects.in/software-development/c-tutorials/c/c-advanced/c-program-for-round-robin/comment-page-1/#comment-2890</link>

		<dc:creator><![CDATA[Priyanka]]></dc:creator>
		<pubDate>Tue, 01 Jun 2010 12:47:23 +0000</pubDate>
		<guid isPermaLink="false">http://studentprojects.in/?p=1124#comment-2890</guid>

					<description><![CDATA[// A program of round robin algorithm

#include 
#include 
main ()
{
int p[10],wt[10], bt[10], tat[10], n, tq;
int i, count = 0, twt = 0, ttat = 0, temp, sq = 0;
float  awt, atat;
clrscr ();
printf(&quot;enter the no. of process=&#062;&quot;);
scanf(&quot;%d&quot;,&#038;n);
printf(&quot;\nenter process=&#062;&quot;);
for(i=0;i&quot;);
for(i=0;i&#060;n;i++)
{
scanf(&#034;%d&#034;,&#038;bt[i]);
p[i] = bt[i];
}
printf( &#034;\n Enter time quantum : &#034; );
scanf ( &#034;%d&#034;, &#038;tq );
while ( 1 )
{
for(i=0,count=0;itq )
p[i]=p[i]-tq;
else
if( p[i] &#062;= 0 )
{
temp = p[i];
p[i] = 0;
}
sq=sq+temp;
tat[i]=sq;
}
if (n==count)
break;
}
for( i = 0; i &#060; n; i++ )
{
wt [i] = tat[i] - bt[i];
twt=twt+wt[i];
ttat=ttat+tat[i];
}
awt =(float)twt/n;
atat=(float)ttat/n;
printf(&#034;p_no.\tP_bt\t p_wt\t p_tat\n&#034; );
for(i=0;i&#060;n;i++)
printf(&#034;%d\t%d\t%d\t%d\n&#034;,i+1,bt[i],wt[i],tat[i]);
printf(&#034;total waiting time=%d\n avg waiting time=%f&#034;,twt,awt);
printf(&#034;\ntotal turnedaroundtime=%d\n avg turnedaround time=%f&#034;,ttat, atat);
getch();
}]]></description>
			<content:encoded><![CDATA[<p>// A program of round robin algorithm</p>
<p>#include<br />
#include<br />
main ()<br />
{<br />
int p[10],wt[10], bt[10], tat[10], n, tq;<br />
int i, count = 0, twt = 0, ttat = 0, temp, sq = 0;<br />
float  awt, atat;<br />
clrscr ();<br />
printf(&#8220;enter the no. of process=&gt;&#8221;);<br />
scanf(&#8220;%d&#8221;,&amp;n);<br />
printf(&#8220;\nenter process=&gt;&#8221;);<br />
for(i=0;i&#8221;);<br />
for(i=0;i&lt;n;i++)<br />
{<br />
scanf(&quot;%d&quot;,&amp;bt[i]);<br />
p[i] = bt[i];<br />
}<br />
printf( &quot;\n Enter time quantum : &quot; );<br />
scanf ( &quot;%d&quot;, &amp;tq );<br />
while ( 1 )<br />
{<br />
for(i=0,count=0;itq )<br />
p[i]=p[i]-tq;<br />
else<br />
if( p[i] &gt;= 0 )<br />
{<br />
temp = p[i];<br />
p[i] = 0;<br />
}<br />
sq=sq+temp;<br />
tat[i]=sq;<br />
}<br />
if (n==count)<br />
break;<br />
}<br />
for( i = 0; i &lt; n; i++ )<br />
{<br />
wt [i] = tat[i] &#8211; bt[i];<br />
twt=twt+wt[i];<br />
ttat=ttat+tat[i];<br />
}<br />
awt =(float)twt/n;<br />
atat=(float)ttat/n;<br />
printf(&quot;p_no.\tP_bt\t p_wt\t p_tat\n&quot; );<br />
for(i=0;i&lt;n;i++)<br />
printf(&quot;%d\t%d\t%d\t%d\n&quot;,i+1,bt[i],wt[i],tat[i]);<br />
printf(&quot;total waiting time=%d\n avg waiting time=%f&quot;,twt,awt);<br />
printf(&quot;\ntotal turnedaroundtime=%d\n avg turnedaround time=%f&quot;,ttat, atat);<br />
getch();<br />
}</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
