<?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 How to run code on a specific CPU in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/How-to-run-code-on-a-specific-CPU/m-p/826539#M6158</link>
    <description>Thanks Tim. I will re-ask this question in threading forum. &lt;BR /&gt;&lt;BR /&gt;I was writing a test driver in Windows OS, and came across KeSetProcessorAffinity function which was forcing the code to run on a specific processor. After the call, the code somehow started running on CPU [0-3]. That made me think what could be logic behind this function call. And that was my original question. &lt;BR /&gt;&lt;BR /&gt;After reading through Intel documentation, I know how interrupt routines can be executed on a dedicated processor (by setting destination bits in IOREDIRECT table - IOAPIC), but I don't know exactly how a running thread can be executed on a specific processor.&lt;BR /&gt;</description>
    <pubDate>Thu, 13 Jan 2011 23:09:09 GMT</pubDate>
    <dc:creator>mguptamel</dc:creator>
    <dc:date>2011-01-13T23:09:09Z</dc:date>
    <item>
      <title>How to run code on a specific CPU</title>
      <link>https://community.intel.com/t5/Software-Archive/How-to-run-code-on-a-specific-CPU/m-p/826537#M6156</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;I have multi-core processor (Core -2 duo) which has 4 logical processors. I would like to switch processor to run the code. For example,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;;Assuming code is running on CPU-0&lt;BR /&gt;mov eax, ecx&lt;BR /&gt;&lt;BR /&gt;; I want to switchto CPU-1 (don't know how to go about it)&lt;BR /&gt;mov ebx, eax&lt;BR /&gt;&lt;BR /&gt;; Switch back to CPU-0 here&lt;BR /&gt;mov ecx, eax&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Note: Above is just a sample code. My intentions are to learn how to switch b/w CPU's and to set code affinity to a specific CPU&lt;BR /&gt;&lt;BR /&gt;Help appreciated&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Gupta</description>
      <pubDate>Tue, 11 Jan 2011 03:17:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/How-to-run-code-on-a-specific-CPU/m-p/826537#M6156</guid>
      <dc:creator>mguptamel</dc:creator>
      <dc:date>2011-01-11T03:17:12Z</dc:date>
    </item>
    <item>
      <title>How to run code on a specific CPU</title>
      <link>https://community.intel.com/t5/Software-Archive/How-to-run-code-on-a-specific-CPU/m-p/826538#M6157</link>
      <description>This question might be handled better on the threading forum, but you should specify your OS and more about what you wish to accomplish.</description>
      <pubDate>Thu, 13 Jan 2011 13:45:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/How-to-run-code-on-a-specific-CPU/m-p/826538#M6157</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2011-01-13T13:45:57Z</dc:date>
    </item>
    <item>
      <title>How to run code on a specific CPU</title>
      <link>https://community.intel.com/t5/Software-Archive/How-to-run-code-on-a-specific-CPU/m-p/826539#M6158</link>
      <description>Thanks Tim. I will re-ask this question in threading forum. &lt;BR /&gt;&lt;BR /&gt;I was writing a test driver in Windows OS, and came across KeSetProcessorAffinity function which was forcing the code to run on a specific processor. After the call, the code somehow started running on CPU [0-3]. That made me think what could be logic behind this function call. And that was my original question. &lt;BR /&gt;&lt;BR /&gt;After reading through Intel documentation, I know how interrupt routines can be executed on a dedicated processor (by setting destination bits in IOREDIRECT table - IOAPIC), but I don't know exactly how a running thread can be executed on a specific processor.&lt;BR /&gt;</description>
      <pubDate>Thu, 13 Jan 2011 23:09:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/How-to-run-code-on-a-specific-CPU/m-p/826539#M6158</guid>
      <dc:creator>mguptamel</dc:creator>
      <dc:date>2011-01-13T23:09:09Z</dc:date>
    </item>
  </channel>
</rss>

