login
Header Space

 
 

Re: openbsd's perl and thread support

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <misc@...>
Date: Thursday, November 29, 2007 - 11:34 am

"Thomas Delaet" <thomas@delaet.org> wrote:

You'll have to rebuild perl from source if you want threads.  It's a
fairly painless but somewhat lengthy process if this is your first time.
Check out the INSTALL file in /usr/src/gnu/usr.bin/perl - it explains
everything.

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

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


-- 
Stephen Takacs   <perlhaq@gmail.com>   http://perlguru.net/
    4149 FD56 D078 C988 9027  1EB4 04CC F80F 72CB 09DA
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: openbsd's perl and thread support, Stephen Takacs, (Thu Nov 29, 11:34 am)
Re: openbsd's perl and thread support, Randal L. Schwartz, (Thu Nov 29, 12:08 pm)
Re: openbsd's perl and thread support, Thomas Delaet, (Mon Dec 3, 10:46 am)
Re: openbsd's perl and thread support, Stuart Henderson, (Thu Nov 29, 11:53 am)
speck-geostationary