<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>MQX Software SolutionsのトピックRe: how to create another task without help of current running task</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/how-to-create-another-task-without-help-of-current-running-task/m-p/368108#M12152</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the task template list contains the information of the attributes of tasks that MQX creates, and it could be any combination of:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;NULL: When MQX starts, it does not create an instance of the task. MQX uses FIFO scheduling for the task.&lt;/LI&gt;&lt;LI&gt;MQX_AUTO_START_TASK: When MQX starts, it creates one instance of the task.&lt;/LI&gt;&lt;LI&gt;MQX_DSP_TASK: MQX saves the DSP coprocessor registers as part of the task’s context.&lt;/LI&gt;&lt;LI&gt;MQX_FLOATING_POINT_TASK: MQX saves floating-point registers as part of the task’s context.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if all the tasks have as attribute MQX_AUTO_START_TASK then the tasks will run without help of another task. MQX uses FIFO scheduling for the task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt; Sol &lt;BR /&gt; &lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Apr 2015 20:48:54 GMT</pubDate>
    <dc:creator>soledad</dc:creator>
    <dc:date>2015-04-01T20:48:54Z</dc:date>
    <item>
      <title>how to create another task without help of current running task</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/how-to-create-another-task-without-help-of-current-running-task/m-p/368107#M12151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i want to listen 2port simultaneously. can you give any solution for this..?&lt;/P&gt;&lt;P&gt;i tried example rtcs project code but i cant listen two port at the same time.after one client connected only it was processing another one. how to listen 2port or how to initialize 2port at a same time&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;example code:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;err = select(2,&amp;amp;rfds,NULL,0);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; test_tid = _task_create(0, TEST_TASK_INDEX, (uint32_t) &amp;amp;task_p);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (tx_tid == MQX_NULL_TASK_ID)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fprintf(stderr, "Fatal Error 0x%X: Unable to create transmit task.", _task_get_error());&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _task_block();&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;actually "select(2,&amp;amp;rfds,NULL,0);" in&amp;nbsp; this function was waiting upto incoming connection.&lt;/P&gt;&lt;P&gt;after that only its creating &lt;STRONG&gt;TEST_TASK_INDEX,&amp;nbsp; &lt;/STRONG&gt;so how to avoid that problem. &lt;STRONG&gt;how to create another task without help of current running task. &lt;/STRONG&gt;i am new for RTOS now only i am learning, i am waiting for your&amp;nbsp; reply..&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV style="display: none;"&gt; &lt;/DIV&gt;&lt;DIV style="display: none;"&gt; &lt;/DIV&gt;&lt;DIV style="display: none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2015 04:03:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/how-to-create-another-task-without-help-of-current-running-task/m-p/368107#M12151</guid>
      <dc:creator>sudhakarp</dc:creator>
      <dc:date>2015-04-01T04:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: how to create another task without help of current running task</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/how-to-create-another-task-without-help-of-current-running-task/m-p/368108#M12152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the task template list contains the information of the attributes of tasks that MQX creates, and it could be any combination of:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;NULL: When MQX starts, it does not create an instance of the task. MQX uses FIFO scheduling for the task.&lt;/LI&gt;&lt;LI&gt;MQX_AUTO_START_TASK: When MQX starts, it creates one instance of the task.&lt;/LI&gt;&lt;LI&gt;MQX_DSP_TASK: MQX saves the DSP coprocessor registers as part of the task’s context.&lt;/LI&gt;&lt;LI&gt;MQX_FLOATING_POINT_TASK: MQX saves floating-point registers as part of the task’s context.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if all the tasks have as attribute MQX_AUTO_START_TASK then the tasks will run without help of another task. MQX uses FIFO scheduling for the task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt; Sol &lt;BR /&gt; &lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2015 20:48:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/how-to-create-another-task-without-help-of-current-running-task/m-p/368108#M12152</guid>
      <dc:creator>soledad</dc:creator>
      <dc:date>2015-04-01T20:48:54Z</dc:date>
    </item>
  </channel>
</rss>

