RE: 'accept' does not seem to be thread friendly ..

2002-12-03 Thread Simon Marlow
> Below is my sample code ; the Net Cats > This does not work, because 'accept' fuction of the > Network module blocks the whole process, unlike > Haskell Standard IO functions which blocks its thread > only. How did you work around with complex networked > applications ? It would be very helpful i

'accept' does not seem to be thread friendly ..

2002-12-02 Thread Ahn Ki-yung
John Meacham wrote: that is what Concurrent is for, Haskell threads, (well GHC threads) are lightweight and can be used for selectlike purposes without too much overhead. I use them quite effectivly for complex networked applications.. see http://haskell.org/ghc/docs/latest/html/base/Control.Con