From: Eric Y. K. <eri...@gm...> - 2011-09-02 15:02:30
|
On Fri, Sep 02, 2011 at 15:55:07 +0100, mac...@gm... wrote: > If the only restriction here is that all the GUI updates should happen > on the main OS thread, doesn't it mean that Haskell (green) threads > spawned through forkIO are fine, because they execute on the same OS > thread? Or does wxHaskell introduce additional restrictions? I'm not the best person to ask, but I will note that Haskell's very lightweight threads may be divided up among one or more OS thread (if you enable the multi-threaded runtime). A Haskell thread may also be passed around from one OS thread to another. See the Word of the Month in http://www.well-typed.com/blog/53 -- Eric Kow <http://erickow.com> |