projects
/
ghc-hetmet.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
71e956e5cda2be7e94a02b6fc127897f565c2379
[ghc-hetmet.git]
/
ghc
/
tests
/
concurrent
/
should_run
/
conc027.hs
1
2
import Concurrent
3
4
main = do
5
m <- newEmptyMVar
6
end <- newEmptyMVar
7
forkIO (sequence_ [ putMVar m () | _ <- [1 .. 10000] ])
8
forkIO (sequence_ [ takeMVar m | _ <- [1 .. 10000] ] >> putMVar end ())
9
takeMVar end