The point of threads is shared address space. They are lighweight and fast to create. It isn't just parallel processing with fork a new process. Please understand what threading is ntended to provide before you make recommendations to do something else nstead. Sent from my BlackBerry® smartphone with Nextel Direct Connect
-----Original Message----- From: Todd Rinaldo <to...@cpanel.net> Date: Fri, 26 Nov 2010 10:20:24 To: Sébastien Aperghis-Tramoni<sebast...@aperghis.net> Cc: Gabor Szabo<szab...@gmail.com>; <module-authors@perl.org> Subject: Re: What hurts you the most in Perl? On Nov 24, 2010, at 9:54 AM, Sébastien Aperghis-Tramoni wrote: > Gabor Szabo wrote: > >> The other day I was at a client that uses Perl in part of their system and we >> talked a bit about the language and how we try to promote it at various >> events. >> >> Their "Perl person" then told me he would not use Perl now for a large >> application because: >> >> 1) Threads do not work well - they are better in Python and in Java. > > When in need to execute things in parallels, I use fork() or POE. > I love the fork module. It's great how it's a drop in replacement for the threads module. It allows me to easily swap over to threads when I move code over to a machine that can use threads. I very much wish, however, that forks could get a return variable from the fork process like threads can. This has always frustrated me. To be honest, though, the fact that Linux forks are copy on write, takes much of the value out of threads as far as I'm concerned.