Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
RTSが初期化されたOSスレッドの数を教えてくれるIOアクションはありますか?これをControl.Parallel.StrategiesモジュールからのparBuffer関数への引数として使用できると便利です。
GHCを想定すると、を使用GHC.Conc.numCapabilitiesして引数を取得できます+RTS -N。
GHC.Conc.numCapabilities
+RTS -N