<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>PeterKellner.net &#187; PLINQ</title>
	<atom:link href="http://peterkellner.net/category/plinq/feed/" rel="self" type="application/rss+xml" />
	<link>http://peterkellner.net</link>
	<description>Microsoft Focussed, JavaScript (ExtJS, SenchaTouch &#38; Windows 8 Metro)</description>
	<lastBuildDate>Tue, 07 Feb 2012 21:14:45 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Using PLINQ for Managing Multiple Threads</title>
		<link>http://peterkellner.net/2009/12/02/plinq-in-vs2010-at-pdc09/</link>
		<comments>http://peterkellner.net/2009/12/02/plinq-in-vs2010-at-pdc09/#comments</comments>
		<pubDate>Wed, 02 Dec 2009 20:05:17 +0000</pubDate>
		<dc:creator>Peter Kellner</dc:creator>
				<category><![CDATA[.NET 4.0]]></category>
		<category><![CDATA[PLINQ]]></category>
		<category><![CDATA[VS2010]]></category>

		<guid isPermaLink="false">http://peterkellner.net/2009/12/02/plinq-in-vs2010-at-pdc09/</guid>
		<description><![CDATA[I’m currently watching an online video (400 level, very high) from PDC while flying home from Chicago (and blogging about it).&#160; One of the common patterns I often implement is to write some code that does a bunch of “Thread.Start” type stuff and “Thread.IsAlive”.  http://microsoftpdc.com/Sessions/FT21  With PLINQ, this can be avoided with clean [...]]]></description>
			<content:encoded><![CDATA[<p>I’m currently watching an online video (400 level, very high) from <a href="http://microsoftpdc.com/">PDC</a> while flying home from Chicago (and blogging about it).&#160; One of the common patterns I often implement is to write some code that does a bunch of “Thread.Start” type stuff and “Thread.IsAlive”.</p>  <p><a title="http://microsoftpdc.com/Sessions/FT21" href="http://microsoftpdc.com/Sessions/FT21">http://microsoftpdc.com/Sessions/FT21</a></p>  <p>With <a href="http://msdn.microsoft.com/en-us/library/dd460688(VS.100).aspx">PLINQ</a>, this can be avoided with clean error free code (as long as my method is thread safe).&#160; Here is some simple code that demonstrates this.</p> <span id="more-388"></span>  <p>var result =    <br />source.AsParallel().Where    <br />&#160; (x =&gt; [some condition]).Select(x =&gt; [something]);</p>  <p>   <br /></p> <style type="text/css">

.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }</style>  <p>My understanding is that this will just do my [something] in parallel using as many threads as can be allocated, and when one finishes, the next will just start.</p>  <p>Very Cool, Very Clean!</p>  <p>Another good article is here:&#160; <a title="http://www.danielmoth.com/Blog/2009/01/plinq.html" href="http://www.danielmoth.com/Blog/2009/01/plinq.html">http://www.danielmoth.com/Blog/2009/01/plinq.html</a>&#160;</p>  <p>uh oh, they are telling me to turn off all electronic devices, time to land.</p>]]></content:encoded>
			<wfw:commentRss>http://peterkellner.net/2009/12/02/plinq-in-vs2010-at-pdc09/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced)
Database Caching 4/11 queries in 0.008 seconds using disk

Served from: peterkellner.net @ 2012-02-08 20:10:39 -->
