<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.arm.com/utility/feedstylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>rxt51_tiny:why can not tasks switching?</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/21311/rxt51_tiny-why-can-not-tasks-switching</link><description> 
code as following,and run on c8051f020. 

 
unsigned char code cString1[]={&amp;quot;\nCommand: 1\0&amp;quot;};
unsigned char code cString2[]={&amp;quot;\nCommand: 2\0&amp;quot;};
unsigned char code cString3[]={&amp;quot;\nCommand: 3\0&amp;quot;};
unsigned char code cString4[]={&amp;quot;\nCommand: 4\0&amp;quot;};
unsigned</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: rxt51_tiny:why can not tasks switching?</title><link>https://community.arm.com/thread/47723?ContentTypeID=1</link><pubDate>Wed, 31 Jan 2007 12:41:01 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:25ff9f23-d780-4b2e-80ad-b89e33356983</guid><dc:creator>Jason Daniel</dc:creator><description>&lt;p&gt;&lt;p&gt;
Nantian,&lt;/p&gt;

&lt;p&gt;
I&amp;#39;ve not used RTX-51 Tiny before, but something in your code looks
suspicious. Namely:&lt;/p&gt;

&lt;pre&gt;
os_delete_task (Initial_p);                /* stop init task (no longer needed)    */
&lt;/pre&gt;

&lt;p&gt;
It seems that the ONLY task that prints cString1 is &amp;quot;Initial_p&amp;quot;
and you delete that task after its first execution. So, it&amp;#39;s doing
what I would expect: Executing the first time, printing its result,
and then round-robining through the remaining tasks.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>