>>>>> "SWM" == Steven W McDougall <[EMAIL PROTECTED]> writes:
>> my $a;
>>
>> Perl simply ignores locking. Thread gets the value of the winner
>> in a race condition. Perl does _not_ crash and burn. Internal
>> structures, mallocs, and accesses are properly mutexed.
SWM> I don't understand this.
SWM> Is $a shared between threads or isn't it?
Thinko.
You are correct. Changes are invisible to the other thread.
SWM> If it is, then these two statements seem directly contradictory:
SWM> - Perl simply ignores locking.
SWM> - Internal structures, mallocs, and accesses are properly mutexed
I think we are still in mutual misunderstanding. I am only addressing
what the _user_ sees. Not what perl will do internally. I'm working
under the assumption that -internals will do whatever it has to, to
keep perl properly functioning in the face of threads.
<chaim>
--
Chaim Frenkel Nonlinear Knowledge, Inc.
[EMAIL PROTECTED] +1-718-236-0183