[Israel.pm] Threads with non-thread compilation

Yuval Yaari yuval at windax.com
Fri Nov 9 03:07:27 PST 2007


Yossi Itzkovich wrote:
> If I use Thread module but the Perl interpreter was compiled with
> default flags (= no threads support), does it mean the code will not run
> at all, or will be just serialized ?
>   
If you use the threads pragma, just use forks instead.
It's a drop-in replacement for threads, so the rest of the code remains 
the same.

Of course, you can always just recompile your perl to support threads, 
y'know ;-)

HTH,

  ~Y



More information about the Perl mailing list