>>>>> "Stephen" == Stephen Takacs <[EMAIL PROTECTED]> writes:

Stephen> Perl threads on Unix aren't nearly as useful as on platforms like
Stephen> Win32 that don't have a native fork(), and even there you have to be
Stephen> careful because Perl's threads are not at all "lightweight".  You can
Stephen> easily end up with processes that have huge memory footprints if you
Stephen> don't exert extreme caution.  Also some modules aren't safe to use in
Stephen> multiple threads.

Stephen> Another alternative that's cross-platform and perhaps more robust is
Stephen> POE (http://poe.perl.org).  This is just a CPAN module, so you don't
Stephen> have to rebuild perl in order to use it.

There's also the "forks" module in the CPAN which simulates threads for
thread-based Perl programs using "fork()", albeit with a few restrictions.
I've installed this on OpenBSD and a few other platforms, and at least most of
the tests pass. :)

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

Reply via email to