note
BrowserUk
<blockquote><i> Which is also why Perl 5 ithreads continue to have scalability issues for the past 15 years!</i></blockquote>
<p>That statement is as wrong today, as the post you've attached it to was wrong, when you wrote it 15 years ago.
<p>The only scalability issue with iThreads is the implementation (not the model) of shared memory aggregates.
<p>Proof: The following simple demo code starts <c>ARGV[0]</c> threads that each lock/increment/release a shared scalar every 1/100th of second <c>$ARGV[1]</c> times:<code>
#! perl -slw
use threads stack_size => 4096;
use threads::shared;
$|++;
sub usleep{ select'','','',$_[0] }
my $count :shared = 0;
sub doit{
do{ lock $count; printf "\r[%u] %u\t", threads->tid, ++$count; usleep 0.01 } for 1 .. $_[0];
}
my @t = map threads->create( \&doit, $ARGV[1] // 300 ), 1 .. $ARGV[ 0 ];
$_->join for @t;
print $count;
</code>
<p>And a run:<code>
C:\test>t-stress 3000 100
300000
</code>
<p>That runs in a tad over 2GB, and once all 3000 threads are running -- a matter of a few seconds -- it consumes less that 1% cpu. That's as, if not more, scalable than any true (kernel) threading interpreted language as I know of, and better than many fully (native) compiled languages.
<p>The fact that you wrote that despicable document without having the understanding to realise what a steaming pile it was, is lamentable.
<p>The fact that 15 years on you haven't learnt enough to realise your mistake and are still promoting it; would be laughable if it wasn't so beyond the pale.
<p>The fact that you are apparently designated (in large part) for specifying the multi-tasking in P6 -- despite being responsible for [https://metacpan.org/search?p=1&q=ELIZABETH+Thread%3A%3A*&size=500|this other steaming pile of abandonware] -- would be scary as well as irresponsible; were it not for the fact that P6 will never challenge even AppleScript or Logo for performance, and is thus useless for anything in the real world; so your brand of throw-in-everything-including-the-kitchen-sink programming will likely never be a serious bottleneck, cos no one will ever use it.
<div class="pmsig"><div class="pmsig-171588">
<hr />
<font size=1 >
<div>With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'</div>
<div>Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.</div>
<div>"Science is about questioning the status quo. Questioning authority". [http://www.theregister.co.uk/2016/11/02/complexity_in_it/|The enemy of (IT) success is complexity.]</div>
<div>In the absence of evidence, opinion is indistinguishable from prejudice.
<span>[https://www.theregister.co.uk/2017/04/10/mark_shuttleworth_says_some_free_software_contributors_are_deeply_anti_social/|Suck that fhit]</span> </div>
</font>
</div></div>
1217692
1218511