Click or drag to resize

HyperThreadingTester Class

Class to test if system has Hyper-Threading enabled.

A polynomial function is evaluated a number of times in parallel, and timed using various number of threads. From those timings, it is evaluated whether hyper-threading is enabled or not

This will only return a correct value if the system being evaluated is mostly idle. If the system is stressed, this may give incorrect results.

Inheritance Hierarchy
SystemObject
  DHI.Mike1D.GenericHyperThreadingTester

Namespace:  DHI.Mike1D.Generic
Assembly:  DHI.Mike1D.Generic (in DHI.Mike1D.Generic.dll) Version: 19.0.0.0 (11.1.1.1111)
Syntax
public class HyperThreadingTester

The HyperThreadingTester type exposes the following members.

Constructors
  NameDescription
Public methodHyperThreadingTester
Default constructor.
Top
Properties
  NameDescription
Public propertyNumberOfEvals
Number of evaluations of a polynomial function.

Default is 1000000

Public propertyNumberOfRepetitions
Number of times to repeat timing

Default is 3

Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodEvaluate
Evaluate whether Hyper Threading is enabled.
Public methodEvaluate(Double)
Evaluate whether Hyper Threading is enabled.
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodTimeAll
Give timings (in seconds) for all number of threads from 1 to Environment.ProcessorCount
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also