> On Thu, 18 Jun 1998, Alastair Reid wrote:
> > Read the Hugs-GHC documentation in hugs/doc
>
> Can you give me a more direct pointer? I am not finding it in my docs.
hugs/docs/libs-html/libs.html
(which is linked to by hugs/docs/index.html)
Alastair:
> > Hugs/GHC runs everything in a single OS thread.
> > There's no gain from having multiple threads because we'd have to
> > put a mutex round access to the heap - and Haskell programs spend
> > all their time touching the heap.
"S. Alexander Jacobson" <[EMAIL PROTECTED]>:
> You would gain from having multiple threads if they distributed themselves
> across processors and memory was cheap (you do a memcpy of all
> datastructures accessable from the fork point). I guess this is was
> parallel haskell is for.
The problem is how to preserve _some_ sharing of data structures between
the different processors (so that they share communication channels and
share any expensive computations) but to avoid sharing _all_ the data
structures (so that they don't spend too much time waiting for each
other or use up too much bandwidth). Just doing a memcpy would lose
all sharing.
Alastair