I have this prog in windows ghc:
import Control.Concurrent
a=print 1
b=print 2
main=do
forkIO a
forkIO b
it can only print 1 in console,Why?
I think the main thread run first,then it create a thread,run function a,print 1,then create another thread,run function b,then print 2
so the console will give me
1 2