Can I find the number of CPU cores for vb.net 2005?

Can I find the number of CPU cores for vb.net 2005?
LVL 1
AlyantoAsked:
Who is Participating?
 
Mohamed AbowardaConnect With a Mentor Software EngineerCommented:
You can use windows API:
http://www.dalun.com/blogs/05.01.2007.htm

or Environment.ProcessorCount() function in both VB.NET and C#.
0
 
AlyantoAuthor Commented:
Can I find the number of CPU cores for vb.net 2005?
0
 
John (Yiannis) ToutountzoglouInstructor Multiengine PilotCommented:
0
 
John (Yiannis) ToutountzoglouInstructor Multiengine PilotCommented:
0
 
John (Yiannis) ToutountzoglouInstructor Multiengine PilotCommented:
Simply use
Console.WriteLine("ProcessorCount := " + Environment.ProcessorCount)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.