<?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>topic How to block one task from another task in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/How-to-block-one-task-from-another-task/m-p/450881#M15106</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;I want to block few MQX task from another task which is performing some important operation. I studied _task_block api mentioned in MQX RM document but for that i need to add this api in every task which i want to block. Is there is any method to block other task from current running task ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ashi Gupta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Nov 2015 07:23:30 GMT</pubDate>
    <dc:creator>ashigupta1990</dc:creator>
    <dc:date>2015-11-30T07:23:30Z</dc:date>
    <item>
      <title>How to block one task from another task</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/How-to-block-one-task-from-another-task/m-p/450881#M15106</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;I want to block few MQX task from another task which is performing some important operation. I studied _task_block api mentioned in MQX RM document but for that i need to add this api in every task which i want to block. Is there is any method to block other task from current running task ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ashi Gupta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2015 07:23:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/How-to-block-one-task-from-another-task/m-p/450881#M15106</guid>
      <dc:creator>ashigupta1990</dc:creator>
      <dc:date>2015-11-30T07:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to block one task from another task</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/How-to-block-one-task-from-another-task/m-p/450882#M15107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ashi Gupta,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need a little more information about what you need. According you mention I can suggest to use a mutex or semaphore.&lt;/P&gt;&lt;P&gt;A mutex provides mutual exclusion among tasks, when they access a shared resource. Mutexes are strict; that is, a task cannot unlock a mutex, unless it had first locked the mutex.&lt;/P&gt;&lt;P&gt;In addition you can use semaphores to synchronize tasks. You can use a semaphore to guard access to a shared resource, or to implement a producer/consumer-signalling mechanism. Semaphores can be strict or non-strict. There are named and fast semaphores.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can find mutex and semaphore examples at the path: C:\Freescale\Freescale_MQX_4_2\mqx\examples&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In addition you can check the below training documents&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-102663"&gt;Training Class: MQX RTOS v4.1 Basics Training for MQX Beginners&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Sol &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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>Mon, 30 Nov 2015 21:29:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/How-to-block-one-task-from-another-task/m-p/450882#M15107</guid>
      <dc:creator>soledad</dc:creator>
      <dc:date>2015-11-30T21:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to block one task from another task</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/How-to-block-one-task-from-another-task/m-p/450883#M15108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sol,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a functionality of SW download from one of my task. I need to block all other task when SW download starts in order to increase download speed. There is no shared resource used between task. All task will be unblocked as soon as SW download finishes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ashi Gupta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2015 06:40:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/How-to-block-one-task-from-another-task/m-p/450883#M15108</guid>
      <dc:creator>ashigupta1990</dc:creator>
      <dc:date>2015-12-02T06:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to block one task from another task</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/How-to-block-one-task-from-another-task/m-p/450884#M15109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I want to block few MQX task from another task which is performing some important operation.&lt;/BLOCKQUOTE&gt;&lt;P&gt;No you don't. It is the operating system's job to decide which tasks should run and which should be pre-empted, not the task's. The task should not even know of the existance of other tasks, let alone go fiddling with their state.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have a task that needs to run at high priority (thus pre-empting other tasks) while it completes an important function, the task can simply raise its own priority using _task_set_priority(). The task should use _task_get_priority() first to get and remember the initial priority, so it can restore it when the important function is finished.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Dec 2015 21:39:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/How-to-block-one-task-from-another-task/m-p/450884#M15109</guid>
      <dc:creator>matthewkendall</dc:creator>
      <dc:date>2015-12-07T21:39:41Z</dc:date>
    </item>
  </channel>
</rss>

