I managed to put this together, but I really don't like it. Is there possibly a more straightforward way to do this?
//LInux get cpu count
| |||
Last edited on Dec 23, 2008 at 2:11amOct 15, 2010 at 6:26am UTC
|
engin (1) | ![]() | ||
good luck :) | |||
|
helios (7842) | ![]() |
Well, it is shorter. It's not exactly what I had in mind, but at least it's elegant. Thanks. | |
|
jwoolsto (36) | ![]() |
I don't suppose anyone would be willing to help me find that file on OSX? There is no proc directory in my root directory. | |
|
Zaita (2113) | ![]() |
jwoolsto: That's an OSX question, it'll be either an API call or stored in a file on your file system. | |
|
jwoolsto (36) | ![]() |
Zaita: I posted on an osx forum as well, but I figured the odds were decent at least I wasn't the only one here programming on osx so I thought it was worth a shot. | |
|
jwoolsto (36) | ![]() |
For the record: http://forums.macosxhints.com/showthread.php?p=512843#post512843 |