On 2007/11/29 10:34, Stephen Takacs wrote:
> "Thomas Delaet" <[EMAIL PROTECTED]> wrote:
> > I want to use perl's threads module. It seems that this is not
> > supported on OpenBSD (4.0 but since the perl version is the same in
> > 4.1 and 4.2, I guess this problem still exists).
> 
> 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.

CPAN has "forks", which is a drop-in replacement for threads.
I understand simon@ is working on a port.

Reply via email to