<?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 Difference between semaphore and event in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/Difference-between-semaphore-and-event/m-p/187411#M3392</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the difference between semaphore and event?&lt;/P&gt;&lt;P&gt;Is it advisable to replace event with semaphore and vise versa?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Mar 2011 14:36:13 GMT</pubDate>
    <dc:creator>admin</dc:creator>
    <dc:date>2011-03-02T14:36:13Z</dc:date>
    <item>
      <title>Difference between semaphore and event</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Difference-between-semaphore-and-event/m-p/187411#M3392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the difference between semaphore and event?&lt;/P&gt;&lt;P&gt;Is it advisable to replace event with semaphore and vise versa?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Mar 2011 14:36:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Difference-between-semaphore-and-event/m-p/187411#M3392</guid>
      <dc:creator>admin</dc:creator>
      <dc:date>2011-03-02T14:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between semaphore and event</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Difference-between-semaphore-and-event/m-p/187412#M3393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class="lia-user-name UserName"&gt;&lt;SPAN&gt;n3prakash,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class="lia"&gt;&lt;SPAN class="lia-user-name UserName"&gt;&lt;SPAN&gt;Good RTOS definitions and understanding is in the FSLMQX/doc/mqx/mqxug.pdf chapter #2.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia"&gt;&lt;SPAN class="lia-user-name UserName"&gt;&lt;SPAN&gt;In general an event is good to indicate an interrupt has occured and you want to notify one or more tasks that the interrupt has occured.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia"&gt;&lt;SPAN class="lia-user-name UserName"&gt;&lt;SPAN&gt;Semaphore good for limiting the number of tasks that can access a specific resource.&amp;nbsp; Example might be you only want two task to be able to output data on a specific UART.&amp;nbsp; If a third tasks tried to output data it would block until a semaphore became available.&amp;nbsp; A mutext is a special case of semiphore where only one task can access a resource.&amp;nbsp; Example would be a task data logging to a file where you cannot have more than one task accessing the same file.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia"&gt;&lt;SPAN class="lia-user-name UserName"&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia"&gt;&lt;SPAN class="lia-user-name UserName"&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia"&gt;&lt;SPAN class="lia-user-name UserName"&gt;&lt;SPAN&gt;David&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Mar 2011 22:58:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Difference-between-semaphore-and-event/m-p/187412#M3393</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2011-03-02T22:58:48Z</dc:date>
    </item>
  </channel>
</rss>

