How do I get the number of threads / HECs (the -N parameter) of a Haskell program that was compiled with -threaded during its runtime?
[Edit] My question is about the number of HECs, not about the number of cores (even though the answer is related) - so the question is not a duplicate.