1 2 3 4 5 6 7 8 9
module Main where import Control.Concurrent main = do t <- forkOn 0 (return ()) threadCapability t >>= print t <- forkOn 1 (return ()) threadCapability t >>= print