develooper Front page | perl.perl6.language | Postings from April 2005

Re: Threading in Parrot vs Perl

Thread Previous | Thread Next
From:
Sam Vilain
Date:
April 28, 2005 14:54
Subject:
Re: Threading in Parrot vs Perl
Message ID:
42715B71.5040208@vilain.net
Rod Adams wrote:
> I would be dismayed if autothreading used threads to accomplish it's 
> goals. Simple iteration in a single interpreter should be more than 
> sufficient.

For sure.  No point in doing 10_000 cycles to set up a scratch area
for a single boolean test that might take 10 cycles.

A software transaction (atomic { } block) behaves in many ways like
setting up a new interpreter thread and exiting at the end.  I expect
these will be more lightweight than a real thread... in some cases
able to be reduced to no-ops.

So, implementing autothreading using STM as the 'localizing' engine
is another possibility within a single process/thread.

Sam.

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About