projects
/
ghc-hetmet.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[project @ 2001-02-14 12:59:34 by simonmar]
[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