Jump to content
Sign in to follow this  
E1M1

How to get nr of CPU(s)?

Recommended Posts

E1M1

How to get nr of CPU(s)?

and how to make process use X CPU on my choice?

Edited by E1M1

edited

Share this post


Link to post
Share on other sites
James

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)

Share this post


Link to post
Share on other sites
E1M1

my great thanks


edited

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×