<?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: Question regarding multithreading? in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/question-regarding-multithreading/m-p/283641#M7397</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Could you use three separate feature layers and define the where clauses in XAML?&amp;nbsp; That way you won't need to query, query, query.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Queries are asynchronous so you could fire them all at once and the results can be displayed as graphics in a Graphics layer.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Jul 2012 22:47:07 GMT</pubDate>
    <dc:creator>deleted-user-ATjHIWsdQYmT</dc:creator>
    <dc:date>2012-07-02T22:47:07Z</dc:date>
    <item>
      <title>Question regarding multithreading?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/question-regarding-multithreading/m-p/283640#M7396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to fire three attribute queries on three different layers.These would be independent queries, that means they have their separate where clauses and do not depend on each other for the inputs. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, I was wondering if could I use multi threading for it? That means I'll create 3 septate threads and execute queries in them.Will there be any issue for this? Has anybody done this before? Or our ArcGIS API for silverlight support multi-threading?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestions/responses would be greatly appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2012 11:57:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/question-regarding-multithreading/m-p/283640#M7396</guid>
      <dc:creator>SanajyJadhav</dc:creator>
      <dc:date>2012-07-02T11:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: Question regarding multithreading?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/question-regarding-multithreading/m-p/283641#M7397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Could you use three separate feature layers and define the where clauses in XAML?&amp;nbsp; That way you won't need to query, query, query.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Queries are asynchronous so you could fire them all at once and the results can be displayed as graphics in a Graphics layer.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2012 22:47:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/question-regarding-multithreading/m-p/283641#M7397</guid>
      <dc:creator>deleted-user-ATjHIWsdQYmT</dc:creator>
      <dc:date>2012-07-02T22:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: Question regarding multithreading?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/question-regarding-multithreading/m-p/283642#M7398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You should be able to run multiple QueryTasks in a single or multiple thread.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2012 00:35:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/question-regarding-multithreading/m-p/283642#M7398</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2012-07-03T00:35:55Z</dc:date>
    </item>
    <item>
      <title>Re: Question regarding multithreading?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/question-regarding-multithreading/m-p/283643#M7399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Jennifer and andrew,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the replies.Setting where clauses in the XAML is not possible in our case.So, I am going ahead and firing queries in multiple threads.I'll put my findings here.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2012 03:24:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/question-regarding-multithreading/m-p/283643#M7399</guid>
      <dc:creator>SanajyJadhav</dc:creator>
      <dc:date>2012-07-03T03:24:21Z</dc:date>
    </item>
    <item>
      <title>Re: Question regarding multithreading?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/question-regarding-multithreading/m-p/283644#M7400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sanjay,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;P align="left"&gt;While it is certainly possible to run the queries on multiple threads as &lt;/P&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #444444; font-family: Verdana;"&gt;andrew points out these are asynchronous operations so you will not achieve any performance &lt;/SPAN&gt;&lt;SPAN style="color: #444444; font-family: Verdana;"&gt;improvements by doing so.&amp;nbsp; As soon as one query launches the next will launch immediately and they will all be running on the server in a multi-threaded fashion, which is where the processing occurs.&amp;nbsp; Just create an individual method for each query with its own QueryTask object and call each method in sequence, it will be a lot simpler and will perform identical to running each on its own thread.&lt;/SPAN&gt;&lt;SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #444444; font-family: Verdana;"&gt;&lt;BR /&gt;Good luck&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2012 04:12:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/question-regarding-multithreading/m-p/283644#M7400</guid>
      <dc:creator>JoeHershman</dc:creator>
      <dc:date>2012-07-03T04:12:51Z</dc:date>
    </item>
    <item>
      <title>Re: Question regarding multithreading?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/question-regarding-multithreading/m-p/283645#M7401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Joe,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the additional information.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I decided to stick to the current thread only.So, I fired my all queries one after another.That's heavy operation but it worked.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2012 09:18:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/question-regarding-multithreading/m-p/283645#M7401</guid>
      <dc:creator>SanajyJadhav</dc:creator>
      <dc:date>2012-07-05T09:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: Question regarding multithreading?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/question-regarding-multithreading/m-p/283646#M7402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Joe,&lt;BR /&gt;&lt;BR /&gt;Thanks for the additional information.&lt;BR /&gt;&lt;BR /&gt;I decided to stick to the current thread only.So, I fired my all queries one after another.That's heavy operation but it worked.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sanjay,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Glad it worked for you.&amp;nbsp; It really is not a heavy operation because the Silverlight client application is not doing any of the work.&amp;nbsp; Take a look at &lt;/SPAN&gt;&lt;A href="http://msdn.microsoft.com/en-us/library/system.net.webclient.aspx"&gt;http://msdn.microsoft.com/en-us/library/system.net.webclient.aspx&lt;/A&gt;&lt;SPAN&gt;.&amp;nbsp; The ExecuteAsynch methods on a Task are basically wrappers for the WebClient::OpenReadAsych method that build the Url/Query String from the parameters provided.&amp;nbsp; So all that happens on the Silverlight side is the sending of a message to the server.&amp;nbsp; All the processing is done by the ArcGIS Server process (a SOC process running on the server) and the Silverlight application just waits around for the results to be sent back.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Joe&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2012 12:26:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/question-regarding-multithreading/m-p/283646#M7402</guid>
      <dc:creator>JoeHershman</dc:creator>
      <dc:date>2012-07-05T12:26:11Z</dc:date>
    </item>
  </channel>
</rss>

