<?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>Wed, 08 Feb 2012 19:14:42 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Zennoposter Templates</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-4811</link>
		<dc:creator>Zennoposter Templates</dc:creator>
		<pubDate>Fri, 30 Dec 2011 05:40:11 +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-4811</guid>
		<description>You are actually a just right webmaster. The site loading speed is amazing. It sort of feels that you are doing any distinctive trick. Moreover, The contents are masterwork. you&#039;ve performed a great task in this subject!</description>
		<content:encoded><![CDATA[<p>You are actually a just right webmaster. The site loading speed is amazing. It sort of feels that you are doing any distinctive trick. Moreover, The contents are masterwork. you&#8217;ve performed a great task in this subject!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Heather O</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-4421</link>
		<dc:creator>Heather O</dc:creator>
		<pubDate>Thu, 23 Jun 2011 22:34:49 +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-4421</guid>
		<description>hey there and thank you for your info – I’ve definitely picked up something new from right here. I did however expertise a few technical issues using this web site, as I experienced to reload the web site lots of times previous to I could get it to load correctly. I had been wondering if your web hosting is OK? Not that I am complaining, but sluggish loading instances times will sometimes affect your placement in google and could damage your quality score if ads and marketing with Adwords. Well I’m adding this RSS to my e-mail and can look out for much more of your respective exciting content. Ensure that you update this again soon..</description>
		<content:encoded><![CDATA[<p>hey there and thank you for your info – I’ve definitely picked up something new from right here. I did however expertise a few technical issues using this web site, as I experienced to reload the web site lots of times previous to I could get it to load correctly. I had been wondering if your web hosting is OK? Not that I am complaining, but sluggish loading instances times will sometimes affect your placement in google and could damage your quality score if ads and marketing with Adwords. Well I’m adding this RSS to my e-mail and can look out for much more of your respective exciting content. Ensure that you update this again soon..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Viral</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-3695</link>
		<dc:creator>Viral</dc:creator>
		<pubDate>Wed, 24 Mar 2010 18:47:46 +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-3695</guid>
		<description>Hello,

Great explanation about using Processor affinity.

I require to use same ..but wondering how could i do this ?

I have bunch of files to process for IP/OP.
It takes input file -&gt; Extract Text -&gt; set Content in Op file.

i divided this with Threads..but it not using avaliable Processors..

how could i dispatch &amp; use all both threa/Task by setting processor affinity In C#.net application.</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>Great explanation about using Processor affinity.</p>
<p>I require to use same ..but wondering how could i do this ?</p>
<p>I have bunch of files to process for IP/OP.<br />
It takes input file -&gt; Extract Text -&gt; set Content in Op file.</p>
<p>i divided this with Threads..but it not using avaliable Processors..</p>
<p>how could i dispatch &amp; use all both threa/Task by setting processor affinity In C#.net application.</p>
]]></content:encoded>
	</item>
	<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>

