Andre W B Furtado writes:
:
| import Concurrent
|
| main :: IO()
| main = let loop ch = putStr(ch) >> loop ch in
| forkIO (loop "a") >> loop "z"
|
| But this program prints only 'z's, and no 'a's. I was surprised by
| this, since GHC uses preemptive multitasking, not cooperative
| multitasking. Does anyone knows what's going wrong?
By my count, this is now a TAQ (thrice asked question). :-)
http://www.mail-archive.com/[email protected]/msg01599.html
_______________________________________________
Haskell mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell