Re: Integrating ghc's rts into other single-threaded frameworks

2004-05-05 Thread Wolfgang Thaller
So here's what I don't understand: we make a non-blocking call to gtk+'s main loop So far, so good. (which makes a blocking call in a new OS thread). With (the current version of) GHC's threaded RTS, there's only one OS thread involved until you spawn a second thread (with forkIO or forkOS). S

RE: Integrating ghc's rts into other single-threaded frameworks

2004-05-05 Thread Duncan Coutts
On Wed, 2004-05-05 at 14:55, Simon Peyton-Jones wrote: > | I'm thinking about how to make threaded Haskell program work nicely > with Gtk+ (the widget toolkit) and whether the new threaded rts will > help or not. > | Would bound threads help? I'm not sure I understand the idea very > well. > > Tha

RE: Integrating ghc's rts into other single-threaded frameworks

2004-05-05 Thread Simon Peyton-Jones
| I'm thinking about how to make threaded Haskell program work nicely with | Gtk+ (the widget toolkit) and whether the new threaded rts will help or | not. | ... | | Would bound threads help? I'm not sure I understand the idea very well. That's *exactly* what the bound-threads idea is for. It's