how to determine CPU cache size in .NET?

后端 未结 4 1038
谎友^
谎友^ 2021-01-13 10:32

I would like to know if there is a way to determine CPU cache size in managed code?

I am writing a Strassen\'s algorithm for matrix multiplication in C# and would li

4条回答
  •  无人及你
    2021-01-13 11:09

    is this what you are looking for? The Win32_Processor class features L2CacheSize and L3CacheSize members.

提交回复
热议问题