develooper Front page | perl.perl5.porters | Postings from April 2001

An idea for multiplicity

Thread Next
Albert Tobey
April 26, 2001 07:04
An idea for multiplicity
Message ID:
   I've been doing alot of reading on threads lately for a perl mongers 
talk (on threads).  On reading about python, I either read or misread a 
piece about their threading implementation that appeared to mean that 
all threading actions are serialized using a global spinlock of some sort
   The idea that gave me is that perl could have one of those global 
spinlocks that forces serialization of all operations.  The cool part 
about it is that the programmer would have to explicitely turn it off to 
get full multiplicity.  This would be a boon when debugging weirdness in 
threaded applications and would mean that non-threadsafe modules 
wouldn't mean the death of a threaded application.

   The short, short version: how about a global serialization lock that 
has to be explicitely turned off to gain full multiplicity.

Anyways, Just A Thought.

-Al Tobey

Version: 3.12
GAT d-(+)@ s:+ a-- C++ ULHS++++$ P++++(-) L+++>++++$ E--- W-(++@) N+ o?
K? w--- !O M- V-- PS(+) PE Y+ PGP- t+ 5++ X R tv@ b++>+++ DI+(++) D+ G
e* h+ r++ y+

This email and any files transmitted with it are confidential
and intended solely for the use of the individual or entity
to whom they are addressed.  If you have received this 
email in error please notify the Priority Health Information
Services Department at (616) 942-0954.

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