<?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 CreateThread() function in Intel® Moderncode for Parallel Architectures</title>
    <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/CreateThread-function/m-p/857918#M2178</link>
    <description>I have been wondering about this function. How much processing time is taken when this function is called?&lt;BR /&gt;&lt;BR /&gt;Specifically:&lt;BR /&gt;&lt;BR /&gt;How much faster is this at setting &lt;B&gt;variable &lt;/B&gt;to 1:&lt;BR /&gt;&lt;BR /&gt;&lt;B&gt;int variable = 0;&lt;BR /&gt;int main()&lt;BR /&gt;{&lt;BR /&gt; variable = 1;&lt;BR /&gt; return 0;&lt;BR /&gt;}&lt;/B&gt;&lt;BR /&gt;&lt;BR /&gt;Than this:&lt;BR /&gt;&lt;BR /&gt;&lt;B&gt;int variable = 0;&lt;BR /&gt;LRESULT WINAPI ThreadProc(LPVOID lpParameter)&lt;BR /&gt;{&lt;BR /&gt; variable = 1;&lt;BR /&gt; return 0;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;int main()&lt;BR /&gt;{&lt;BR /&gt; DWORD dwThreadID;&lt;BR /&gt; CreateThread(0,0,ThreadProc,0,&amp;amp;dwThreadID);&lt;BR /&gt;&lt;BR /&gt; while(variable==0) {Sleep(10);}&lt;BR /&gt;&lt;BR /&gt; return 0;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;/B&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;-Steve&lt;BR /&gt;</description>
    <pubDate>Tue, 30 Mar 2010 20:08:30 GMT</pubDate>
    <dc:creator>stephen-smolley</dc:creator>
    <dc:date>2010-03-30T20:08:30Z</dc:date>
    <item>
      <title>CreateThread() function</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/CreateThread-function/m-p/857918#M2178</link>
      <description>I have been wondering about this function. How much processing time is taken when this function is called?&lt;BR /&gt;&lt;BR /&gt;Specifically:&lt;BR /&gt;&lt;BR /&gt;How much faster is this at setting &lt;B&gt;variable &lt;/B&gt;to 1:&lt;BR /&gt;&lt;BR /&gt;&lt;B&gt;int variable = 0;&lt;BR /&gt;int main()&lt;BR /&gt;{&lt;BR /&gt; variable = 1;&lt;BR /&gt; return 0;&lt;BR /&gt;}&lt;/B&gt;&lt;BR /&gt;&lt;BR /&gt;Than this:&lt;BR /&gt;&lt;BR /&gt;&lt;B&gt;int variable = 0;&lt;BR /&gt;LRESULT WINAPI ThreadProc(LPVOID lpParameter)&lt;BR /&gt;{&lt;BR /&gt; variable = 1;&lt;BR /&gt; return 0;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;int main()&lt;BR /&gt;{&lt;BR /&gt; DWORD dwThreadID;&lt;BR /&gt; CreateThread(0,0,ThreadProc,0,&amp;amp;dwThreadID);&lt;BR /&gt;&lt;BR /&gt; while(variable==0) {Sleep(10);}&lt;BR /&gt;&lt;BR /&gt; return 0;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;/B&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;-Steve&lt;BR /&gt;</description>
      <pubDate>Tue, 30 Mar 2010 20:08:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/CreateThread-function/m-p/857918#M2178</guid>
      <dc:creator>stephen-smolley</dc:creator>
      <dc:date>2010-03-30T20:08:30Z</dc:date>
    </item>
  </channel>
</rss>

