■ ManagementObject 클래스 : 프로세서 정보 구하기

------------------------------------------------------------------------------------------------------------------------


TestProject.zip


Program.cs

 

 

using System;

 

namespace TestProject

{

    /// <summary>

    /// 프로그램

    /// </summary>

    class Program

    {

        //////////////////////////////////////////////////////////////////////////////////////////////////// Method

        ////////////////////////////////////////////////////////////////////////////////////////// Static

        //////////////////////////////////////////////////////////////////////////////// Private

 

        #region 프로그램 시작하기 - Main()

 

        /// <summary>

        /// 프로그램 시작하기

        /// </summary>

        private static void Main()

        {

            Console.Title = "ManagementObject 클래스 : 프로세서 정보 구하기";

 

            foreach(Processor processor in Processor.GetInstances())

            {

                Console.WriteLine("NAME                  : " + processor.Name                   );

                Console.WriteLine("CAPTION               : " + processor.Caption                );

                Console.WriteLine("ARCHITECTURE          : " + processor.Architecture.ToString());

                Console.WriteLine("MANUFACTURER          : " + processor.Manufacturer           );

                Console.WriteLine("CORE COUNT            : " + processor.CoreCount              );

                Console.WriteLine("LOGIC PROCESSOR COUNT : " + processor.LogicalProcessorCount  );

                Console.WriteLine("ADDRESS WIDTH         : " + processor.AddressWidth           );

                Console.WriteLine("DATA WIDTH            : " + processor.DataWidth              );

                Console.WriteLine("CPU STATUS            : " + processor.CPUStatus              );

            }

        }

 

        #endregion

    }

}

 

------------------------------------------------------------------------------------------------------------------------

Posted by 사용자 icodebroker
TAG

댓글을 달아 주세요