<?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: threading vs multiprocessing for concurrent gp tool runs in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/threading-vs-multiprocessing-for-concurrent-gp/m-p/582362#M45655</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Jason. Its not much to switch between the two so Ill change over to multiprocessing.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Nov 2013 19:42:10 GMT</pubDate>
    <dc:creator>ChrisMathers</dc:creator>
    <dc:date>2013-11-25T19:42:10Z</dc:date>
    <item>
      <title>threading vs multiprocessing for concurrent gp tool runs</title>
      <link>https://community.esri.com/t5/python-questions/threading-vs-multiprocessing-for-concurrent-gp/m-p/582360#M45653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If I want to run 15 spatial joins at the same time, would it be better to use threading or multiprocessing? I've implemented threading already in a test and it cut 50 minutes (running sequentially) down to 15 minutes (running in concurrent threads). What is best practice in this case? Threading seems to work just dandy but if its not the recommended module for concurrent processing with ArcGIS I'll make the minor changes needed.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Nov 2013 19:14:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/threading-vs-multiprocessing-for-concurrent-gp/m-p/582360#M45653</guid>
      <dc:creator>ChrisMathers</dc:creator>
      <dc:date>2013-11-25T19:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: threading vs multiprocessing for concurrent gp tool runs</title>
      <link>https://community.esri.com/t5/python-questions/threading-vs-multiprocessing-for-concurrent-gp/m-p/582361#M45654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If threading works for you, stick with threading. I'd recommend multiprocessing over threading, though, for the following reasons:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;UL&gt;&lt;BR /&gt;&lt;LI&gt;ArcObjects instances (and therefore most arcpy/arcgisscripting objects) cannot cross thread boundaries. That is, if you create an object in one thread, you cannot access it in another.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;On 32 bit operating systems, each individual process gets its own memory space, allowing each to consume a full 2(-4) gigs without having to share with other tool calls.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Robustness. If one process crashes, the others continue to run and you can restart the one that failed.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;&lt;/LI&gt;&lt;BR /&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Nov 2013 19:26:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/threading-vs-multiprocessing-for-concurrent-gp/m-p/582361#M45654</guid>
      <dc:creator>JasonScheirer</dc:creator>
      <dc:date>2013-11-25T19:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: threading vs multiprocessing for concurrent gp tool runs</title>
      <link>https://community.esri.com/t5/python-questions/threading-vs-multiprocessing-for-concurrent-gp/m-p/582362#M45655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Jason. Its not much to switch between the two so Ill change over to multiprocessing.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Nov 2013 19:42:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/threading-vs-multiprocessing-for-concurrent-gp/m-p/582362#M45655</guid>
      <dc:creator>ChrisMathers</dc:creator>
      <dc:date>2013-11-25T19:42:10Z</dc:date>
    </item>
  </channel>
</rss>

