
28 Feb
2009
28 Feb
'09
10:22 a.m.
Hello Daniel, Saturday, February 28, 2009, 6:20:09 PM, you wrote:
But they would not be equivalent if stdout has to be locked for each output operation separately, but a file opened with openFile fp WriteMode was locked then once and remained so until closed.
ghc Handles are locked for every operation, not for entire file lifetime. it's done in order to make safe concurrent operations in threads of the same program -- Best regards, Bulat mailto:Bulat.Ziganshin@gmail.com