[Haskell-cafe] SIGVTALRM and Unbound threads
Albert Y. C. Lai
trebla at vex.net
Thu Sep 25 20:59:26 UTC 2014
On 14-09-25 03:55 PM, Lane Seppala wrote:
> As the simplest example, compiled with the threaded runtime (and
> neglecting imports):
>
> main = void $ sleep 10
>
> will be interrupted, whereas
>
> main = void $ runInUnboundThread $ sleep 10
>
> will complete its 10 second sleep.
Before you commit to your understanding, consider one more experiment
that changes everything:
main = void $ runInUnboundThread (runInBoundThread $ sleep 10)
Also, consider hitting CTRL-C (or sending SIGINT any way), see what does
not happen. Do you want this behaviour?
More information about the Haskell-Cafe
mailing list