How to find the Number of Cores and Logical Processors using C#.net

January 30th, 2012

This is a pre cusrsor to something more that we are trying to achieve. The goal is to develop a simple code that will find the processor and memory details and then will benchmark the computer. We will then let users run this program to help him benchmark and compare the processors.

Today we will show you how to get the information about the number of processors. Here is the code that has been compiled in C#.Net ( 2010 Express Edition).

A note on compilation.

- Copy paste this code in console application and then go to Projects -> Add reference – > .NET – > System.Management

Happy coding.


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Management;

namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{

foreach (var item in new System.Management.ManagementObjectSearcher("Select * from Win32_ComputerSystem").Get())
{
Console.WriteLine("Number Of Physical Processors: {0} ", item["NumberOfProcessors"]);
}

// Number of Cores

int coreCount = 0;
foreach (var item in new System.Management.ManagementObjectSearcher("Select * from Win32_Processor").Get())
{
coreCount += int.Parse(item["NumberOfCores"].ToString());
}
Console.WriteLine("Number Of Cores: {0}", coreCount);

// Number of Logical Processors

foreach (var item in new System.Management.ManagementObjectSearcher("Select * from Win32_ComputerSystem").Get())
{
Console.WriteLine("Number Of Logical Processors: {0}", item["NumberOfLogicalProcessors"]);
}

Console.ReadLine();
}
}
}

Uncategorized

Allegro PCB Viewer

January 29th, 2012

If you have been given an Allegro PCB Design to review and you do not have the access to complete Allegro Design Suites, you may like to download the Allegro PCB Viewer from http://www.cadence.com/products/pcb/Pages/downloads.aspx. The Allegro PCB viewer is a free tool to view the Allegro PCB Design files.

If you have the complete tool available to you, you may like to check the Allegro PCB tutorial.

Uncategorized

New Calculators – Post errors in Comment

January 21st, 2012

AMD Athlon ii P340 Processor review

November 1st, 2010

[ad#2]
AMD has launched in the market an Athlon II dual-core processor P340. The features of this processor make it a great competition for the recently released Intel Pentium P6100 series. Let’s have a look at the characteristics that make the Athlon II P340 a good option for customers in their search for a good processor for their laptops and/or notepads. The Athlon II P340 has a frequency of operation of 2.2 GHz. Another feature we should mention is that it has a CPU multiplier is of 16. When compared to the Intel Pentium p6100 series, the Athlon II P340 processor offers a memory controller of the DDR3, this means that the there is a reduction of the memory interval and it also means that there is an improvement in the processor as a whole. The dual-core has been built with 45nm lithography technology, and has a data width of 64 bits. It also offers a level 2 cache memory separated in the dual core and with 512 KB each level. Another striking characteristic of the Athlon II P340 processor is that the power consumption is of only 25 watts, the lowest power consumption processor when compared to other CPUs in the same market segment.
[ad]
The Athlon ii supports Hardware virtualization. The advantage of such feature is that you will be able to have different operating systems in the same device without having to cope with a decrease in performance. One thing you should take into account when considering to purchase a laptop with this type of processor is that it has a revolutionary technology to avoid heating problems (Powernow and Cool’n’Quit). Some other things that the Athlon II P340 processor includes are an adjustable controller, hardware to help you control temperature of the processor, and some integration based samples. The new dual-core processor from AMD also includes an outstanding feature to help you protect the timer support. The reason why I believe this is a good processor to get is because all the available graphic cards in the market can be used with the Athlon II P340. Nevertheless, as the speed for processing data is not much it does not offer an excellent performance when the customer uses applications that require multi threading. You will find this type of Athlon II P340 processor in brands such as Sony Vaio, HP and Acer, but not all models come with a dual-core processor P340.

Uncategorized

Intel Pentium P6000 P6100 and P6200 processors

October 27th, 2010

[ad#2]
Intel Pentium P6000 P6100 and P6200 processors

The Intel pentium P6000, P6100 and P6200 are based upon the Arrandale architecture. It is intel’s attempt to keep the Pentium brand alive and at the same time offer the benefits of the Arrandale Architecture.

If you are not aware of the Arrandale architecture, it is basically the same architecture that powers the intel core i3, core i5 and core i7 processors, which means that they have integrated memory controller and a DMI bus to communicate with the chipset.
[ad]
The core frequency of P6000 is 1.86 GHz while that of the P6100 and P6200 are 2 GHz and 2.13 GHz respectively. The intel P6000 series does not have turbo boost functionality as in the core i5 processors. Also, there is no Hyperthreading supported in the intel P6000 series processor.

The Intel P6000 series contain 3 MB of smart cache. Built with 32 nm technology, the intel Pentium P6000, P6100 and P6200 processors have a moderate TDP rating of 35 Watts.

The P6000 series has integrated DDR3 memory controller that can support a maximum of 8 GB DDR3 memory.

Uncategorized

Honda CRV 2012

October 24th, 2010

Honda CRV 2012 Discussions
[ad#2]
This topic has been started with the intention of starting the discussions about the Honda CRV 2012. You may have several questions in your mind. And some of you may have the right answers. If you have any information please contribute by commenting below. If you have some questions, you may still comment and ask any question relevant to Honda CRV 2012. All relevant question and most answers will be approved.

[ad]
Here are some common questions that you may have in your mind about Honda CRV 2012

Q. Who are the nearest competitors of the Honda CRV 2012 ?

Q. Do we have any pricing information or any guess about the Honda CRV 2012 ? How about previous year models ?

Q. Who are different trims and variations of Honda CRV 2012 ?

Q. Do we have EPA Fuel Economy figures available for the Honda CRV 2012 ? How about older models ?

Q. What safety rating has been given to the Honda CRV 2012 ?

Q. Mechanically what are the engine horsepower figures and what type of transmission (manual, automatic or contnuous) for the Honda CRV 2012 ?

Q. When do we expect the Honda CRV 2012 to be available ?

Once again, if you know answer to these questions, please comment. If you have more questions. Please feel free to ask it in the comment itself.

Uncategorized