c# - Is the processorid per core? -


can processor whether dual core or i3 or i5 or i7 have processor id equals number of core processor or number of logical processor?

i using win32_processor processorid.

it returs processorid in stuck whether returns multiple processorid each core processor or logical processor.

or, return processor id regardless of number of core processor , logical processor.

you need test on system depends on type of cpu have. it's 1 entry per logical (hyper-threaded) processor.

here msdn says

on multiprocessor computer, 1 instance of win32_processor class exists each processor.

to determine total number of processor instances associated computer system object, use win32_computersystemprocessor association class.

to determine if hyperthreading enabled processor, compare numberoflogicalprocessors , numberofcores. if hyperthreading enabled in bios processor, numberofcores less numberoflogicalprocessors. example, dual-processor system contains 2 processors enabled hyperthreading can run 4 threads or programs[ or simultaneously]. in case, numberofcores 2 , numberoflogicalprocessors 4.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -