E1M1 Posted January 28, 2010 Share Posted January 28, 2010 (edited) How to get nr of CPU(s)? and how to make process use X CPU on my choice? Edited January 28, 2010 by E1M1 edited Link to comment Share on other sites More sharing options...
James Posted January 28, 2010 Share Posted January 28, 2010 First time I've ever used EnvGet for anything of any use: ConsoleWrite("Number of CPUs: " & EnvGet("NUMBER_OF_PROCESSORS") & @CRLF) ConsoleWrite("CPU Architecture: " & EnvGet("PROCESSOR_ARCHITECTURE") & @CRLF) ConsoleWrite("CPU Identifier: " & EnvGet("PROCESSOR_IDENTIFIER") & @CRLF) ConsoleWrite("CPU Level: " & EnvGet("PROCESSOR_LEVEL") & @CRLF) ConsoleWrite("CPU Revision: " & EnvGet("PROCESSOR_REVISION") & @CRLF) Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
James Posted January 28, 2010 Share Posted January 28, 2010 Interesting. How reliable is this method? Where can I find a list of valid environment variables?It's a native set of functions. I'd say very reliable. List of environment variables. Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
E1M1 Posted January 28, 2010 Author Share Posted January 28, 2010 my great thanks edited Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now