[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
promises mutex
From: |
Kevin Ryde |
Subject: |
promises mutex |
Date: |
Mon, 06 Sep 2004 11:39:17 +1000 |
User-agent: |
Gnus/5.110003 (No Gnus v0.3) Emacs/21.3 (gnu/linux) |
Is there a theory on having a mutex for each promise?
I see it has the effect of preventing two threads simultaneously
forcing, but I wonder if it'd be easier to allow that, just a single
mutex to protect the final store of the result.
This would be smaller and faster, and might even be beneficial for
some crazy cross-thread recursive forcing. It'd be in keeping with
leaving most syncing up to the application (ie. allowing most anything
not actively harmful).
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- promises mutex,
Kevin Ryde <=