male110
V2EX  ›  .NET

.net core 如何取 cpu 的线程数

  •  
  •   male110 · Apr 18, 2018 · 3956 views
    This topic created in 2957 days ago, the information mentioned may be changed or developed.

    .net core 如何取 cpu 的线程数,如何取 cpu 数?

    2 replies    2018-04-18 17:00:27 +08:00
    male110
        1
    male110  
    OP
       Apr 18, 2018
    比如 cpu 是 4 核 8 线程,返回 8
    yulitian888
        2
    yulitian888  
       Apr 18, 2018
    Environment.ProcessorCount
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2825 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 06:00 · PVG 14:00 · LAX 23:00 · JFK 02:00
    ♥ Do have faith in what you're doing.