<?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: Basic Block Data Decomposition in Perl</title>
	<atom:link href="http://blog.reallywow.com/archives/65/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.reallywow.com/archives/65</link>
	<description>Really? Wow... That's Reallywow</description>
	<lastBuildDate>Sat, 29 May 2010 02:17:40 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
	<item>
		<title>By: lbjay</title>
		<link>http://blog.reallywow.com/archives/65/comment-page-1#comment-20</link>
		<dc:creator>lbjay</dc:creator>
		<pubDate>Wed, 04 Mar 2009 12:51:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.reallywow.com/?p=65#comment-20</guid>
		<description>testing something...&lt;br&gt;&lt;br&gt;&lt;pre&gt;&lt;br&gt;use threads;&lt;br&gt;my $foo = 1;&lt;br&gt;my $thr = threads-&gt;create(&amp;increment)&lt;br&gt;$thr-&gt;join();&lt;br&gt;print $foo, &quot;n&quot;;&lt;br&gt;sub increment {&lt;br&gt;    $foo++;&lt;br&gt;    print $foo, &quot;n&quot;;&lt;br&gt;}&lt;br&gt;&lt;/pre</description>
		<content:encoded><![CDATA[<p>testing something&#8230;</p>
<p>&lt;pre&gt;<br />use threads;<br />my $foo = 1;<br />my $thr = threads-&gt;create(&#038;increment)<br />$thr-&gt;join();<br />print $foo, &#8220;n&#8221;;<br />sub increment {<br />    $foo++;<br />    print $foo, &#8220;n&#8221;;<br />}<br />&lt;/pre</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lbjay</title>
		<link>http://blog.reallywow.com/archives/65/comment-page-1#comment-19</link>
		<dc:creator>lbjay</dc:creator>
		<pubDate>Wed, 04 Mar 2009 12:45:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.reallywow.com/?p=65#comment-19</guid>
		<description>I know nothing of the internals. Superficially I know perl has its own threading mechanism called &quot;ithreads&quot;. They&#039;re like POSIX threads in a lot of ways, but the key difference is that variables aren&#039;t shared between threads unless explicitly requested. Each thread gets a copy of all the current process data.instead.&lt;br&gt;&lt;br&gt;For example...&lt;br&gt;&lt;br&gt;use threads;&lt;br&gt;my $foo = 1;&lt;br&gt;my $thr = threads-&gt;create(&amp;increment)&lt;br&gt;$thr-&gt;join();&lt;br&gt;print $foo, &quot;n&quot;;&lt;br&gt;sub increment {&lt;br&gt;    $foo++;&lt;br&gt;    print $foo, &quot;n&quot;;&lt;br&gt;}&lt;br&gt;&lt;br&gt;This is going to print &quot;2&quot; and then &quot;1&quot;. If you&#039;re used to POSIX threads you&#039;d think the increment() subroutine is ++-ing a $foo shared with the main scope, but it doesn&#039;t; the thread increments its own copy. If you want $foo to be shared you have to enabled shared data and also declare $foo differently...&lt;br&gt;&lt;br&gt;use threads;&lt;br&gt;use threads::shared;&lt;br&gt;my $foo :shared = 1;&lt;br&gt;...</description>
		<content:encoded><![CDATA[<p>I know nothing of the internals. Superficially I know perl has its own threading mechanism called &#8220;ithreads&#8221;. They&#39;re like POSIX threads in a lot of ways, but the key difference is that variables aren&#39;t shared between threads unless explicitly requested. Each thread gets a copy of all the current process data.instead.</p>
<p>For example&#8230;</p>
<p>use threads;<br />my $foo = 1;<br />my $thr = threads-&gt;create(&#038;increment)<br />$thr-&gt;join();<br />print $foo, &#8220;n&#8221;;<br />sub increment {<br />    $foo++;<br />    print $foo, &#8220;n&#8221;;<br />}</p>
<p>This is going to print &#8220;2&#8243; and then &#8220;1&#8243;. If you&#39;re used to POSIX threads you&#39;d think the increment() subroutine is ++-ing a $foo shared with the main scope, but it doesn&#39;t; the thread increments its own copy. If you want $foo to be shared you have to enabled shared data and also declare $foo differently&#8230;</p>
<p>use threads;<br />use threads::shared;<br />my $foo :shared = 1;<br />&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan Rochkind</title>
		<link>http://blog.reallywow.com/archives/65/comment-page-1#comment-17</link>
		<dc:creator>Jonathan Rochkind</dc:creator>
		<pubDate>Tue, 03 Mar 2009 23:35:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.reallywow.com/?p=65#comment-17</guid>
		<description>How does thread handling work in Perl? Does Perl provide any facilities for it, or are you stuck using the OS system primitives?</description>
		<content:encoded><![CDATA[<p>How does thread handling work in Perl? Does Perl provide any facilities for it, or are you stuck using the OS system primitives?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
