Results 1 to 6 of 6

Thread: hyperthreading

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Mar 2007
    Posts
    694

    hyperthreading

    What .net code do I use to get the status of hyperthreading on the machine i.e. on or off ?
    Thanks

  2. #2
    Pro Grammar chris128's Avatar
    Join Date
    Jun 2007
    Location
    England
    Posts
    7,604

    Re: hyperthreading

    As far as I know, you cant do it just using managed .NET code (or WMI). All I found is this exe from Intel that you could call from your program. Its a command line tool so you could try using the example that someone posted in the codebank on how to retrieve output from a command line window to get the results: http://softwarecommunity.intel.com/a...s/eng/2728.htm
    My free .NET Windows API library (Version 2.2 Released 12/06/2011)

    Blog: cjwdev.wordpress.com
    Web: www.cjwdev.co.uk


  3. #3
    PowerPoster Jenner's Avatar
    Join Date
    Jan 2008
    Location
    Mentor, OH
    Posts
    3,712

    Re: hyperthreading

    Correct. Things like the Hyperthreading setting are stored in a custom set of CPU registers that can really only be accessed via assembly code.
    My CodeBank Submissions: TETRIS using VB.NET2010 and XNA4.0, Strong Encryption Class, Hardware ID Information Class, Generic .NET Data Provider Class, Lambda Function Example, Lat/Long to UTM Conversion Class, Audio Class using BASS.DLL

    Remember to RATE the people who helped you and mark your forum RESOLVED when you're done!

    "Two things are infinite: the universe and human stupidity; and I'm not sure about the universe. "
    - Albert Einstein

  4. #4
    Pro Grammar chris128's Avatar
    Join Date
    Jun 2007
    Location
    England
    Posts
    7,604

    Re: hyperthreading

    Quote Originally Posted by Jenner
    Correct. Things like the Hyperthreading setting are stored in a custom set of CPU registers that can really only be accessed via assembly code.
    I'm surprised it isnt exposed through WMI though... I mean at the end of the day everything boils down to Assembly code doesnt it so I dont see why its any different to anything else?
    My free .NET Windows API library (Version 2.2 Released 12/06/2011)

    Blog: cjwdev.wordpress.com
    Web: www.cjwdev.co.uk


  5. #5
    PowerPoster Jenner's Avatar
    Join Date
    Jan 2008
    Location
    Mentor, OH
    Posts
    3,712

    Re: hyperthreading

    WMI is a little more standardized. It only looks at CPU registers that are part of the standards. Every CPU has some custom registers outside of the standard for various things (the internal CPU temperature probe is another one) and Microsoft doesn't want to write and maintain WMI to have a laundry list of hardware with lists of their special registers.
    My CodeBank Submissions: TETRIS using VB.NET2010 and XNA4.0, Strong Encryption Class, Hardware ID Information Class, Generic .NET Data Provider Class, Lambda Function Example, Lat/Long to UTM Conversion Class, Audio Class using BASS.DLL

    Remember to RATE the people who helped you and mark your forum RESOLVED when you're done!

    "Two things are infinite: the universe and human stupidity; and I'm not sure about the universe. "
    - Albert Einstein

  6. #6
    Pro Grammar chris128's Avatar
    Join Date
    Jun 2007
    Location
    England
    Posts
    7,604

    Re: hyperthreading

    Ahh I see, makes sense
    My free .NET Windows API library (Version 2.2 Released 12/06/2011)

    Blog: cjwdev.wordpress.com
    Web: www.cjwdev.co.uk


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width