Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[PERL] Number of CPU's
06-24-2010, 03:14 PM
Post: #1
[PERL] Number of CPU's
Code:
use Sys::CPU;
  
  $number_of_cpus = Sys::CPU::cpu_count();
  printf("I have %d CPU's\n",$number_of_cpus);
  print "  Speed : ",Sys::CPU::cpu_clock(),"\n";
  print "  Type  : ",Sys::CPU::cpu_type(),"\n";

http://search.cpan.org/~mzsanford/Sys-CPU-0.45/CPU.pm

"Character is determined more by the lack of certain experiences than by those one has had."
Friedrich Nietzsche
Visit this user's website Find all posts by this user
Quote this message in a reply
06-24-2010, 03:27 PM
Post: #2
RE: [PERL] Number of CPU's
This can be used for some computer-info programs. I know how to do it in Delphi. If you collect tricks and find ways to extract data from the computer about it's hardware,
you can make a program like Everest Ultimate or something like that !

There's a fine line between genius and insanity. I have erased this line.
Oscar Levant
There's a fine line between an administrator and black hat hacker. I have erased this line.
Dr DEBCOL
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


 Quick Theme: