• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1006
  • Last Modified:

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

Can I find the number of CPU cores for vb.net 2005?
0
Alyanto
Asked:
Alyanto
  • 3
1 Solution
 
AlyantoAuthor Commented:
Can I find the number of CPU cores for vb.net 2005?
0
 
John (Yiannis) ToutountzoglouCommented:
Simply use
Console.WriteLine("ProcessorCount := " + Environment.ProcessorCount)
0
 
Mohamed AbowardaSoftware 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

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now