1 2 3 4 5
import Control.Monad import GHC.Conc.Sync main = replicateM_ 1000000 $ listThreads >>= print