getting number of processors

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • zeero

    getting number of processors

    Hi,
    i want to get the number processors in my machine. Plz guide. The code is
    running on a core 2 duo machine have 2 processing cores so I expect to get 2
    processors.
    I'm writing code in native visual c++ 2005.
    Regards,

    ..z

  • David Lowndes

    #2
    Re: getting number of processors

    >i want to get the number processors in my machine. Plz guide. The code is
    >running on a core 2 duo machine have 2 processing cores so I expect to get 2
    >processors.
    Have you tried the GetSystemInfo API?

    Dave

    Comment

    Working...