develooper Front page | perl.ithreads | Postings from August 2002

Re: Thread-Tie-0.01

Thread Previous | Thread Next
Arthur Bergman
August 12, 2002 06:02
Re: Thread-Tie-0.01
Message ID:

On måndag, augusti 12, 2002, at 11:45 , Nick Ing-Simmons wrote:

> Elizabeth Mattijsen <> writes:
>> At 12:12 PM 8/11/02 +0100, Nick Ing-Simmons wrote:
>>>> The Thread::Tie module is a proof-of-concept implementation of 
>>>> another
>>>> approach to shared variables.  Instead of having shared variables 
>>>> exist
>>>> in all the threads from which they are accessible, shared variable 
>>>> exist
>>>> as "normal", unshared variables in a seperate thread.  Only a tied 
>>>> object
>>>> exists in each thread from which the shared variable is accesible.
>>> That is actually exactly what threads::shared is supposed to do as 
>>> well.
>>> The only difference being that the "separate thread" has a shadowy
>>> existance
>> Aha!  So maybe there the "2 other threads were running" message is 
>> coming
>> from, when you only started one other thread.
> It is a posibility.

No since it is just a perl interpreter, not a thread structure.

>> Does this shadowy thread run
>> always, even if you don't have threads::shared ?
> I think threads::shared bootstrap calls it into being.



Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About