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

Re: Thread-Tie-0.01

Thread Previous | Thread Next
From:
Arthur Bergman
Date:
August 12, 2002 06:02
Subject:
Re: Thread-Tie-0.01
Message ID:
9CFB9B8C-ADF3-11D6-BC7B-003065D64CBE@contiller.se

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

> Elizabeth Mattijsen <liz@dijkmat.nl> 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.
>
>

Yes

Arthur


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