[Haskell-cafe] Question about forkIO
Brandon Allbery
allbery.b at gmail.com
Thu Feb 28 15:55:20 CET 2013
On Thu, Feb 28, 2013 at 6:09 AM, C K Kashyap <ckkashyap at gmail.com> wrote:
> Say I have a haskell function 'f' that does a forkIO and starts an action
> "a". I create a DLL of this haskell code and inovke "f" from C. Can I
> expect the "a" to continue to run once "f" has returned to C?
>
While you're off in C the I/O manager and garbage collector are suspended.
Many C programs are not prepared to deal with the side effects of their
operation, such as being interrupted by timer signals; moreover, it is not
possible to have multiple handlers at the OS level for a signal, and C
programs may want to use the signal handlers themselves.
--
brandon s allbery kf8nh sine nomine associates
allbery.b at gmail.com ballbery at sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20130228/4563c66b/attachment.htm>
More information about the Haskell-Cafe
mailing list