TraderX has asked for the wisdom of the Perl Monks concerning the following question:

Has anybody ever been to get the Thread extension module to work under ActivePerl? I don't want to use ithreads that is supported under ActivePerl basically because I'm not really that familiar with it. Any suggestions and ideas are greatly appreciated.

Replies are listed 'Best First'.
Re: Multithreading in Perl
by LD2 (Curate) on Aug 13, 2001 at 23:05 UTC
    You may want to check this out, I think you'll find it interesting.
Re (tilly) 1: Multithreading in Perl
by tilly (Archbishop) on Aug 14, 2001 at 08:17 UTC
Re: Multithreading in Perl
by nakor (Novice) on Aug 14, 2001 at 17:54 UTC

    Don't do it! The Thread extension has the potential to horribly crash any program using it, unless you are _extremely_ careful in how you access shared variables. When 5.8.0 comes out, you should try the new threads.pm (build around ithreads).

    However, if you're really gung-ho... AFIK, Thread.pm is not supported under modern (5.6.0+ -derived) ActivePerl builds, so you'll either need a 5.005-based one, or need to build your own (I'd recommend this, so you can still get the benefit of all the fixes in 5.6.1). However, bear in mind that the Win32 fork() emulation is not compatible with Thread.pm.

    One closing message: Remember that there is no such thing as a readonly access in Perl