<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Parallel programming? Well, it’s all about CPU affinity or how to set processor affinity in WPF</title>
	<atom:link href="http://khason.net/blog/parallel-programming-well-it%e2%80%99s-all-about-cpu-affinity-or-how-to-set-processor-affinity-in-wpf/feed/" rel="self" type="application/rss+xml" />
	<link>http://khason.net/blog/parallel-programming-well-it%e2%80%99s-all-about-cpu-affinity-or-how-to-set-processor-affinity-in-wpf/</link>
	<description>Take care of the sense, and the sounds will take care of themselves.</description>
	<lastBuildDate>Tue, 16 Mar 2010 11:21:11 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Processor Benchmark</title>
		<link>http://khason.net/blog/parallel-programming-well-it%e2%80%99s-all-about-cpu-affinity-or-how-to-set-processor-affinity-in-wpf/comment-page-1/#comment-3649</link>
		<dc:creator>Processor Benchmark</dc:creator>
		<pubDate>Fri, 05 Mar 2010 16:38:32 +0000</pubDate>
		<guid isPermaLink="false">http://khason.net/blog/parallel-programming-well-it%e2%80%99s-all-about-cpu-affinity-or-how-to-set-processor-affinity-in-wpf/#comment-3649</guid>
		<description>Sweet.... This is what I&#039;m looking for</description>
		<content:encoded><![CDATA[<p>Sweet&#8230;. This is what I&#8217;m looking for</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sasha Goldshtein</title>
		<link>http://khason.net/blog/parallel-programming-well-it%e2%80%99s-all-about-cpu-affinity-or-how-to-set-processor-affinity-in-wpf/comment-page-1/#comment-1312</link>
		<dc:creator>Sasha Goldshtein</dc:creator>
		<pubDate>Thu, 01 Jan 2009 08:44:30 +0000</pubDate>
		<guid isPermaLink="false">http://khason.net/blog/parallel-programming-well-it%e2%80%99s-all-about-cpu-affinity-or-how-to-set-processor-affinity-in-wpf/#comment-1312</guid>
		<description>&lt;p&gt;Tamir, the reason AppDomain.GetCurrentThreadId() gives you a deprecation warning is that the correlation between CLR threads and OS threads is not guaranteed (as of CLR 2.0).&lt;/p&gt;
&lt;p&gt;This means two things effectively:&lt;/p&gt;
&lt;p&gt;1. A single OS thread can host multiple CLR threads (e.g. using fibers or other cooperative scheduling mechanisms)&lt;/p&gt;
&lt;p&gt;2. A single CLR thread can jump between multiple OS threads&lt;/p&gt;
&lt;p&gt;In the default CLR host, CLR threads and OS threads are essentially the same, and therefore you can safely ignore this warning, at least with the current CLR version. &#160;However, if you&#039;re running under a custom host (such as SQL Server 2005 or your own), then you should be aware of the fact that the OS thread id doesn&#039;t mean much.&lt;/p&gt;
&lt;p&gt;By the way, if you are very concerned about keeping your CLR thread on the same OS thread, then you can call Thread.BeginThreadAffinity and the CLR thread will be tied to the OS thread from that moment on.&lt;/p&gt;
&lt;p&gt;This also means that using the Win32 API removes the deprecation warning, but the problem remains. &#160;When you call kernel32!GetCurrentThread and kernel32!SetThreadAffinityMask you are changing the affinity of the current underlying OS thread, which is not guaranteed to be the stable OS thread for the current CLR thread.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Tamir, the reason AppDomain.GetCurrentThreadId() gives you a deprecation warning is that the correlation between CLR threads and OS threads is not guaranteed (as of CLR 2.0).</p>
<p>This means two things effectively:</p>
<p>1. A single OS thread can host multiple CLR threads (e.g. using fibers or other cooperative scheduling mechanisms)</p>
<p>2. A single CLR thread can jump between multiple OS threads</p>
<p>In the default CLR host, CLR threads and OS threads are essentially the same, and therefore you can safely ignore this warning, at least with the current CLR version. &nbsp;However, if you&#8217;re running under a custom host (such as SQL Server 2005 or your own), then you should be aware of the fact that the OS thread id doesn&#8217;t mean much.</p>
<p>By the way, if you are very concerned about keeping your CLR thread on the same OS thread, then you can call Thread.BeginThreadAffinity and the CLR thread will be tied to the OS thread from that moment on.</p>
<p>This also means that using the Win32 API removes the deprecation warning, but the problem remains. &nbsp;When you call kernel32!GetCurrentThread and kernel32!SetThreadAffinityMask you are changing the affinity of the current underlying OS thread, which is not guaranteed to be the stable OS thread for the current CLR thread.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tamir Khason</title>
		<link>http://khason.net/blog/parallel-programming-well-it%e2%80%99s-all-about-cpu-affinity-or-how-to-set-processor-affinity-in-wpf/comment-page-1/#comment-1311</link>
		<dc:creator>Tamir Khason</dc:creator>
		<pubDate>Thu, 01 Jan 2009 08:44:29 +0000</pubDate>
		<guid isPermaLink="false">http://khason.net/blog/parallel-programming-well-it%e2%80%99s-all-about-cpu-affinity-or-how-to-set-processor-affinity-in-wpf/#comment-1311</guid>
		<description>&lt;p&gt;Sasha, you are right. However, if you&#039;ll look into my code, you&#039;ll see, that from one hand I want to stick to OS thread, but in other section, I want to use fiber thread instead. Thus I do not use it. &lt;/p&gt;
&lt;p&gt;Parallel extension using original OS threads, rather then fiber thread and I, personally, want to be able to manage it. This is the article about&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Sasha, you are right. However, if you&#8217;ll look into my code, you&#8217;ll see, that from one hand I want to stick to OS thread, but in other section, I want to use fiber thread instead. Thus I do not use it. </p>
<p>Parallel extension using original OS threads, rather then fiber thread and I, personally, want to be able to manage it. This is the article about</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cpuid</title>
		<link>http://khason.net/blog/parallel-programming-well-it%e2%80%99s-all-about-cpu-affinity-or-how-to-set-processor-affinity-in-wpf/comment-page-1/#comment-1310</link>
		<dc:creator>cpuid</dc:creator>
		<pubDate>Thu, 01 Jan 2009 08:44:28 +0000</pubDate>
		<guid isPermaLink="false">http://khason.net/blog/parallel-programming-well-it%e2%80%99s-all-about-cpu-affinity-or-how-to-set-processor-affinity-in-wpf/#comment-1310</guid>
		<description>&lt;p&gt;Pingback from &#160;cpuid&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Pingback from &nbsp;cpuid</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cpu roller &#124; Collection of computer-related keywords</title>
		<link>http://khason.net/blog/parallel-programming-well-it%e2%80%99s-all-about-cpu-affinity-or-how-to-set-processor-affinity-in-wpf/comment-page-1/#comment-1309</link>
		<dc:creator>cpu roller &#124; Collection of computer-related keywords</dc:creator>
		<pubDate>Thu, 01 Jan 2009 08:44:27 +0000</pubDate>
		<guid isPermaLink="false">http://khason.net/blog/parallel-programming-well-it%e2%80%99s-all-about-cpu-affinity-or-how-to-set-processor-affinity-in-wpf/#comment-1309</guid>
		<description>&lt;p&gt;Pingback from &#160;cpu roller &#124; Collection of computer-related keywords&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Pingback from &nbsp;cpu roller | Collection of computer-related keywords</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cpu roller &#124; computer tags</title>
		<link>http://khason.net/blog/parallel-programming-well-it%e2%80%99s-all-about-cpu-affinity-or-how-to-set-processor-affinity-in-wpf/comment-page-1/#comment-1308</link>
		<dc:creator>cpu roller &#124; computer tags</dc:creator>
		<pubDate>Thu, 01 Jan 2009 08:44:25 +0000</pubDate>
		<guid isPermaLink="false">http://khason.net/blog/parallel-programming-well-it%e2%80%99s-all-about-cpu-affinity-or-how-to-set-processor-affinity-in-wpf/#comment-1308</guid>
		<description>&lt;p&gt;Pingback from &#160;cpu roller &#124; computer tags&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Pingback from &nbsp;cpu roller | computer tags</p>
]]></content:encoded>
	</item>
</channel>
</rss>
