Solved

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

Posted on 2010-09-04
5
957 Views
Last Modified: 2012-05-10
Can I find the number of CPU cores for vb.net 2005?
0
Comment
Question by:Alyanto
  • 3
5 Comments
 
LVL 1

Author Comment

by:Alyanto
ID: 33602948
Can I find the number of CPU cores for vb.net 2005?
0
 
LVL 18

Expert Comment

by:John (Yiannis) Toutountzoglou
ID: 33602965
0
 
LVL 18

Expert Comment

by:John (Yiannis) Toutountzoglou
ID: 33602976
0
 
LVL 18

Expert Comment

by:John (Yiannis) Toutountzoglou
ID: 33603018
Simply use
Console.WriteLine("ProcessorCount := " + Environment.ProcessorCount)
0
 
LVL 12

Accepted Solution

by:
Mohamed Abowarda earned 500 total points
ID: 33603829
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now