LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   linux and perl (https://www.linuxquestions.org/questions/linux-software-2/linux-and-perl-128513/)

eastsuse 12-23-2003 06:49 PM

linux and perl
 
I know that linux supports multiprocessors... I guess up to 8 in the 2.4 kernel and 32 in the 2.6. However, I've noticed one of my intensive perl scripts only uses 1 cpu at all times. Is this due to perl limitation, or do I need to configure perl, or do I need to configure something in the kernel.

Any help would be appreciated.

trickykid 12-23-2003 07:07 PM

To my understanding its at the application level, not the hardware deciding on what uses one or more cpu's. I would think you could write a perl script that would utilize both cpu's, but I'm really uncertain.

eastsuse 02-11-2004 03:23 PM

I may have found two solutins.

1) use the fork and exec commands.


2) use ithreads in perl 5.8.


All times are GMT -5. The time now is 12:24 AM.