male110
V2EX  ›  .NET

.net core 如何取 cpu 的线程数

  •  
  •   male110 · Apr 18, 2018 · 4294 views
    This topic created in 3124 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
    male110
    OP
    Apr 18, 2018
    1
    比如 cpu 是 4 核 8 线程,返回 8
    yulitian888
    yulitian888
    Apr 18, 2018
    2
    Environment.ProcessorCount
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2178 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 13:51 · PVG 21:51 · LAX 05:51 · JFK 08:51
    ♥ Do have faith in what you're doing.