On Fri, 10 Sep 2004, Eduardo Vazquez Rodriguez wrote:

how can I create a thread on Perl (Im using SPARC architecture) so each thread (or child process) can process each function? and therefore increase speed

Read this, try it out, then let us know if you have problems:

    <http://www.perldoc.com/perl5.8.4/pod/perlthrtut.html>

You may also want to experiment with a fork & exec approach:

    <http://www.perldoc.com/perl5.8.4/pod/perlfork.html>

On Solaris (or any Unix), the performance from these should be roughly equivalent; on Windows (which I realize you aren't using), it's much harder to rely on forking, so you more or less have to use threads, but elsewhere it's generally a matter of whatever is the most convenient.



--
Chris Devers

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to