<?xml-stylesheet type="text/xsl" href="https://community.element14.com/cfs-file/__key/system/syndication/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>PSoC 6 Pioneer Kit Roadtest - Project 5 - Dual Core Appplication</title><link>/products/roadtest/b/blog/posts/psoc-6-pioneer-kit-roadtest---project-5---dual-core-appplication</link><description>This post is part of my Roadtest Review of Cypress PSoC 62S2 Wi-Fi &amp;amp; BT5.0 Pioneer Dev Kit - Review. My review is splitted into multiple reviews and tutorials. Main page of review contains brief description of every chapter. Some projects are imp...</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: PSoC 6 Pioneer Kit Roadtest - Project 5 - Dual Core Appplication</title><link>https://community.element14.com/products/roadtest/b/blog/posts/psoc-6-pioneer-kit-roadtest---project-5---dual-core-appplication</link><pubDate>Fri, 26 Feb 2021 16:10:30 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:c74f542c-94f2-4cd4-9e10-49c7e604911a</guid><dc:creator>Jan Cumps</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;I ran the IPC semaphore example project for dual core, with the semaphore disabled.&lt;/p&gt;&lt;p&gt;To see what happens if you don&amp;#39;t manage shared resources and let both controllers do what they want when they want:&lt;/p&gt;&lt;p&gt;&lt;span&gt;[View:/resized-image/__size/620x325/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-c74f542c-94f2-4cd4-9e10-49c7e604911a/1018.contentimage_5F00_207178.png:620:325]&lt;/span&gt;&lt;/p&gt;&lt;p&gt;As expected, this is not a good idea if the right thing to do is have unique access at a single moment in time.&lt;/p&gt;&lt;p&gt;I like that about the example: they show how you can do it wrong too -&amp;nbsp; to give a feel of why it&amp;#39;s important for each processor to reserve shared resources while using them.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;em&gt;edit:&lt;/em&gt; here is how it looks if the shared resource is properly guarded with a semaphore:&lt;/p&gt;&lt;p&gt;&lt;span&gt;[View:/resized-image/__size/590x296/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-c74f542c-94f2-4cd4-9e10-49c7e604911a/1513.contentimage_5F00_207179.png:590:296]&lt;/span&gt;&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=10605&amp;AppID=14&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>