[Haskell-cafe] Re: ACIO versus Execution Contexts
ahey at iee.org
Wed Dec 1 12:08:42 EST 2004
On Wednesday 01 Dec 2004 4:22 pm, Lennart Augustsson wrote:
> Adrian Hey wrote:
> >>I agree with you that at some level there has to be a unique
> >>resource (for that computer), but it's not something I'd keep
> >>in a global variable.
> > How would you implement this "global variable". In C?
> I said I would NOT keep it in a global variable. :)
> Because I don't like them.
Oh yes, so you did. Sorry. What alternative would you propose?
Something like Keeans thread talking to the rest of the
world by channels?
When Keean suggested this I objected that there was still
no way to prevent accidental forking of multiple copies
of this supposedly unique resource manager thread. (To enforce
safety you still need to use oneShot or similar mechanism).
But perhaps you have something else in mind?
More information about the Haskell-Cafe