<?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のトピックHow can I explicitly perform a task switch?</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/How-can-I-explicitly-perform-a-task-switch/m-p/223667#M6003</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have few tasks run in parallel, and I want to let the MQX OS manage the task queue according to task's priorities, without my interference.&lt;/P&gt;&lt;P&gt;Thus, I do not want task A to block itself (by using _task_block), come back to life only when&amp;nbsp; Task B will set it ready (by using _task_ready).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently, when I wish to switch tasks, I use _time_delay(1) - which is pretty bad programming practice, since this task will wake up after a whole millisecond at the minimum, and not when it is needed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;So, How can I explicitly perform a task switch?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Lior.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 13 Jan 2013 13:12:42 GMT</pubDate>
    <dc:creator>panpwr</dc:creator>
    <dc:date>2013-01-13T13:12:42Z</dc:date>
    <item>
      <title>How can I explicitly perform a task switch?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/How-can-I-explicitly-perform-a-task-switch/m-p/223667#M6003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have few tasks run in parallel, and I want to let the MQX OS manage the task queue according to task's priorities, without my interference.&lt;/P&gt;&lt;P&gt;Thus, I do not want task A to block itself (by using _task_block), come back to life only when&amp;nbsp; Task B will set it ready (by using _task_ready).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently, when I wish to switch tasks, I use _time_delay(1) - which is pretty bad programming practice, since this task will wake up after a whole millisecond at the minimum, and not when it is needed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;So, How can I explicitly perform a task switch?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Lior.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Jan 2013 13:12:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/How-can-I-explicitly-perform-a-task-switch/m-p/223667#M6003</guid>
      <dc:creator>panpwr</dc:creator>
      <dc:date>2013-01-13T13:12:42Z</dc:date>
    </item>
    <item>
      <title>Re: How can I explicitly perform a task switch?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/How-can-I-explicitly-perform-a-task-switch/m-p/223668#M6004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lior,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With FIFO scheduling, the active task runs, until any of the following occurs:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; -the active task voluntarily relinquishes the processor, because it calls a blocking MQX function&lt;BR /&gt; -an interrupt occurs that has higher priority than the active task&lt;BR /&gt; -a task that has priority higher than the active task, becomes ready&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;There exists _time_delay_ticks() function which gets parameter in minimum number of ticks to suspend the task. &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;MQX supports also Round Robin scheduling, which is similar to FIFO scheduling, but with the additional constraint that each round robin task has a maximum amount of time (the time slice), during which it can be active. When the time slice expires, the MQX then performs a dispatch operation to determine, which task should become active.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2013 07:15:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/How-can-I-explicitly-perform-a-task-switch/m-p/223668#M6004</guid>
      <dc:creator>Martin_</dc:creator>
      <dc:date>2013-01-14T07:15:38Z</dc:date>
    </item>
  </channel>
</rss>

