[Haskell-cafe] interaction between OS processes

Albert Y. C. Lai trebla at vex.net
Sat Sep 1 21:12:30 EDT 2007


Andrea Rossato wrote:
>     loop s = do
>          putStrLn s

Most likely, the content of s sits in a local buffer and never leaves 
this process, following most OS conventions and as others point out. 
Another process waiting for it will deadlock.

Most similar process deadlock problems are not specific to Haskell or 
even relevant to Haskell; they are misunderstandings of the underneath 
OS. I recommend every Haskell programmer to take an in-depth Unix course.


More information about the Haskell-Cafe mailing list