<?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>RTX kernel: exception on Task exit by breaking out of while(1) loop</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/31285/rtx-kernel-exception-on-task-exit-by-breaking-out-of-while-1-loop</link><description> 
Hi, 

 
I was experimenting with the Tasks in RTX kernel. 

 
What i observed was that 

 
1) if the highest priority task (at some point of time. Need not
be the highest among all the threads) exits by breaking out of
while(1) loop , then there is</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: RTX kernel: exception on Task exit by breaking out of while(1) loop</title><link>https://community.arm.com/thread/62769?ContentTypeID=1</link><pubDate>Thu, 24 Apr 2014 03:26:28 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:4e599fd0-ed15-4b5c-8e58-89d876231d29</guid><dc:creator>Who is that guy?</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;i&gt;Is this normal behaviour ?&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
Yes. You should ensure that the task is destroyed tidily on the
function exit (i.e., after the break out of your infinite loop).&lt;/p&gt;

&lt;p&gt;
One such method is by calling the function
&lt;b&gt;os_tsk_delete_self&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;
&lt;a href="http://www.keil.com/support/man/docs/rlarm/rlarm_os_tsk_delete_self.htm"&gt;
&lt;a href="http://www.keil.com/support/man/docs/rlarm/rlarm_os_tsk_delete_self.htm"&gt;www.keil.com/.../rlarm_os_tsk_delete_self.htm&lt;/a&gt;&lt;/a&gt;&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>