develooper Front page | perl.ithreads | Postings from September 2008

Re: Lots of context switches with shared array

Thread Previous | Thread Next
From:
Dean Arnold
Date:
September 23, 2008 10:33
Subject:
Re: Lots of context switches with shared array
Message ID:
48D9285E.5040003@presicient.com
Thomas Karcher wrote:
> Hi Dean,
> 
> 
> Thanks for the enlightening answer. Do you think it is possible to
> "trick" threads::shared's lock with a reference to the array, i. e. the
> reference is shared but the array itself isn't?
> 

Not certain how you intend to do that ? Are you intending to write your
own XS implementation ? Keep in mind that a shared ref must point to
a shared variable, ie, a shared variable can't be used as a ref to
a private variable.

Dean Arnold
Presicient Corp.

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