----- Original Message ----- From: "Ray Albert" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Friday, January 20, 2006 2:37 AM Subject: Windows2000 Process Affinity
> Has anyone successfully used the GetProcessAffinitymask and SetProcessAffinitymask methods within Win32::Process? > > I have been unable to successfully implement them and was hoping someone might have sample code they could provide. > > I am trying to limit Perl to running on all CPUs but one on a Windows2000 multi-processor server due to Perl consuming all available CPU on each processor that it executes. This will allow Perl to execute without consuming 100% CPU on the server. > I haven't tried these out .... but I think they should work ok. A (minimal) sample script that demonstrates the problem might help - along with error messages that you're getting. If GetProcessAffinitymask and/or SetProcessAffinitymask are failing (ie returning zero) then check the contents of $^E for Windows error messages. Cheers, Rob _______________________________________________ Perl-Win32-Users mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
