Concurrent question

Simon Marlow
Wed, 7 Nov 2001 09:57:49 -0000

> Suppose I have a program with two (ghc-)threads,
> one that does execute some  `system' commands,=20
> and another one that accepts socket connections.
> While the system thread waits (for the system call to finish),
> will the other thread be awake (and accept new connections)?

No, unfortunately not.  GHC's runtime system doesn't currently support
threads waiting on process completion, so these operations will block
the whole system at the moment.