Ever wanted to write this?

    -- | Forks a thread, but kills it if it has more than 'limit'
    -- bytes resident on the heap.
    forkIOWithSpaceLimit :: IO () -> {- limit -} Int -> IO ThreadId

I have a proposal (and some unpublished experimental patches) which do
just that.  Check it out at: 
http://hackage.haskell.org/trac/ghc/wiki/Commentary/ResourceLimits

Comments, bikeshedding and critique appreciated.

Cheers,
Edward

_______________________________________________
ghc-devs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/ghc-devs

Reply via email to