Sherm Pendley said:
Are you *asking* Perl to use the additional cores, by writing multi-threaded
code? There's been some talk of auto-threading in Perl 6, but that's not
soup yet; in the current release you have to do it yourself.
sherm--
Thank you for your replies,
Yes this particular program does utilize threads and threads::shared.
When the main code signals the worker thread to decode some large files
by setting a shared variable, the worker performs enough work to bring
cpu usage up to 50%, so it doesnt seem to utilize the additional core.
Reading up on the threads docs, it seems there is no way to explicitly
assign an affinity to a particular thread when it is launched.
I am thinking perhaps my Perl installtion might have been installed
incorrectly for utilizing multi-core cpu's?
C:\Documents and Settings\Admin>perl -v
This is perl, v5.8.8 built for MSWin32-x86-multi-thread
Binary build 822 [280952] provided by ActiveState
http://www.ActiveState.com
Built Jul 31 2007 19:34:48
C:\Documents and Settings\Admin>ver
Microsoft Windows XP [Version 5.1.2600]
Thanks,
Jason