<?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 MultiThread: write multiple tables in the file geodatabase at same time? in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/multithread-write-multiple-tables-in-the-file/m-p/107444#M2803</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used C# and ArcObjects&amp;nbsp;to write 6 output tables in the same workspace. To improve the performance, I tried to do parallelization, each thread writing one table&amp;nbsp;. Codes were pasted below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parallel.For(0, tableCount, k=&amp;gt;&lt;BR /&gt; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//write kth table&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;writeTable(k);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I got the error "can not acquire the lock....". It seems that workspace did not support multiple writing at the same time. Is there any other solutions?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Dec 2016 14:43:13 GMT</pubDate>
    <dc:creator>springzhang</dc:creator>
    <dc:date>2016-12-16T14:43:13Z</dc:date>
    <item>
      <title>MultiThread: write multiple tables in the file geodatabase at same time?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/multithread-write-multiple-tables-in-the-file/m-p/107444#M2803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used C# and ArcObjects&amp;nbsp;to write 6 output tables in the same workspace. To improve the performance, I tried to do parallelization, each thread writing one table&amp;nbsp;. Codes were pasted below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parallel.For(0, tableCount, k=&amp;gt;&lt;BR /&gt; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//write kth table&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;writeTable(k);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I got the error "can not acquire the lock....". It seems that workspace did not support multiple writing at the same time. Is there any other solutions?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2016 14:43:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/multithread-write-multiple-tables-in-the-file/m-p/107444#M2803</guid>
      <dc:creator>springzhang</dc:creator>
      <dc:date>2016-12-16T14:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: MultiThread: write multiple tables in the file geodatabase at same time?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/multithread-write-multiple-tables-in-the-file/m-p/107445#M2804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can see thi sample for set STA thread with TPL:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://blogs.msdn.microsoft.com/pfxteam/2010/04/07/parallelextensionsextras-tour-5-stataskscheduler/" title="https://blogs.msdn.microsoft.com/pfxteam/2010/04/07/parallelextensionsextras-tour-5-stataskscheduler/"&gt;ParallelExtensionsExtras Tour – #5 – StaTaskScheduler | Parallel Programming with .NET&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2016 21:34:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/multithread-write-multiple-tables-in-the-file/m-p/107445#M2804</guid>
      <dc:creator>nicogis</dc:creator>
      <dc:date>2016-12-21T21:34:47Z</dc:date>
    </item>
    <item>
      <title>Re: MultiThread: write multiple tables in the file geodatabase at same time?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/multithread-write-multiple-tables-in-the-file/m-p/107446#M2805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Finally, I wrote the tables&amp;nbsp;as txt files, which allowed me to do the writing at the same time.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Dec 2016 17:17:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/multithread-write-multiple-tables-in-the-file/m-p/107446#M2805</guid>
      <dc:creator>springzhang</dc:creator>
      <dc:date>2016-12-28T17:17:54Z</dc:date>
    </item>
  </channel>
</rss>

