develooper Front page | perl.perl5.porters | Postings from March 2000

Re: What's left to do? [LONG]

Thread Previous | Thread Next
Dan Sugalski
March 22, 2000 10:02
Re: What's left to do? [LONG]
Message ID:
At 12:30 PM 3/22/00 -0500, Sam Tregar wrote:
>On Wed, 22 Mar 2000 wrote:
> > Tasks for mere mortals:
> >
> > (Threading)
> > # Which of the standard modules are thread-safe?  Which CPAN modules?
> > # How easy is it to fix those non-safe modules?
> >
> > # Threading is still experimental.  Every reproducible bug identifies
> > # something else for us to fix.  Find and submit more of these problems.
> >
> > Basically lots of destruction testing. Anyone can do this.
>Hey, I'm a mere mortal, maybe I could do some of this?  Could someone
>describe exactly what needs to be tested for?  I should, at the very
>least, be able to cover my own modules.
>My current understanding is that in a threaded program all code that
>accesses global data need to use some kind of explicit locking.  Thus, any
>module that accesses global data of any kind is not thread safe and needs
>modification to be thread safe.  Is this accurate?

Yup, that's accurate. Global data, in this case, isn't just package 
variables, but any variable that might be visible, including lexicals and 
things inside objects and such.


--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai                         have teddy bears and even
                                      teddy bears get drunk

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