<?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 Re: Do I understand the threading concept right? in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/do-i-understand-the-threading-concept-right/m-p/871830#M5235</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Rich.&lt;/P&gt;&lt;P&gt;Is my assumption above correct?: multithreading in the Pro SDK is used to separate the user interface thread from the worker thread, i.e. a user can still perform tasks in the GUI while the worker thread does its work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Feb 2020 10:03:59 GMT</pubDate>
    <dc:creator>BarbaraSchneider2</dc:creator>
    <dc:date>2020-02-11T10:03:59Z</dc:date>
    <item>
      <title>Do I understand the threading concept right?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/do-i-understand-the-threading-concept-right/m-p/871828#M5233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As far as I understand, multithreading in the Pro SDK is used to separate the user interface thread from the worker thread, i.e. a user can still perform tasks in the GUI while the worker thread does its work.&lt;/P&gt;&lt;P&gt;Can I also split up time consuming tasks into multiple threads? In my application, I create some feature classes, and I assign renderers to the corresponding layers. I split this up into multiple threads as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Task task = QueuedTask.Run(() =&amp;gt; CreateFootprintFCAsync(fdPath, "Footprint", spatialRef));&lt;/P&gt;&lt;P&gt;task = QueuedTask.Run(() =&amp;gt; CreatePerimeterFCAsync(fdPath, "Perimeter", spatialRef));&lt;BR /&gt;task = QueuedTask.Run(() =&amp;gt; CreateHabitatFCAsync(fdPath, "Habitat", spatialRef));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, this code doesn't run asynchronously, but sequentially. Am I doing something wrong or is this expected behaviour?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Feb 2020 15:54:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/do-i-understand-the-threading-concept-right/m-p/871828#M5233</guid>
      <dc:creator>BarbaraSchneider2</dc:creator>
      <dc:date>2020-02-10T15:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: Do I understand the threading concept right?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/do-i-understand-the-threading-concept-right/m-p/871829#M5234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Queued Task sets up code so that it runs on the Main CIM Thread. &amp;nbsp;This is a special thread used to access the&amp;nbsp;geodatabase. &amp;nbsp;So the behavior you are seeing is correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Rich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Feb 2020 19:55:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/do-i-understand-the-threading-concept-right/m-p/871829#M5234</guid>
      <dc:creator>RichRuh</dc:creator>
      <dc:date>2020-02-10T19:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: Do I understand the threading concept right?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/do-i-understand-the-threading-concept-right/m-p/871830#M5235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Rich.&lt;/P&gt;&lt;P&gt;Is my assumption above correct?: multithreading in the Pro SDK is used to separate the user interface thread from the worker thread, i.e. a user can still perform tasks in the GUI while the worker thread does its work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Feb 2020 10:03:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/do-i-understand-the-threading-concept-right/m-p/871830#M5235</guid>
      <dc:creator>BarbaraSchneider2</dc:creator>
      <dc:date>2020-02-11T10:03:59Z</dc:date>
    </item>
    <item>
      <title>Re: Do I understand the threading concept right?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/do-i-understand-the-threading-concept-right/m-p/871831#M5236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, this is correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;More information about multithreading in the Pro SDK is available here:&amp;nbsp;&lt;A class="link-titled" href="https://github.com/esri/arcgis-pro-sdk/wiki/ProConcepts-Framework#working-with-multithreading-in-arcgis-pro" title="https://github.com/esri/arcgis-pro-sdk/wiki/ProConcepts-Framework#working-with-multithreading-in-arcgis-pro"&gt;ProConcepts Framework · Esri/arcgis-pro-sdk Wiki · GitHub&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Feb 2020 21:23:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/do-i-understand-the-threading-concept-right/m-p/871831#M5236</guid>
      <dc:creator>RichRuh</dc:creator>
      <dc:date>2020-02-11T21:23:18Z</dc:date>
    </item>
  </channel>
</rss>

