[Bro] x = x and &synchronized
Robin Sommer
robin at icir.org
Fri Apr 19 12:34:00 PDT 2013
On Thu, Apr 18, 2013 at 12:05 -0400, you wrote:
> node-1> foo[0]$x += 42;
> node-2> foo[0]$x += 42;
> node-1> foo[0] = foo[0];
Yes, the 3rd line can undo the 2nd. For more consistency we'd need to
have some explicit synchronization/locking across nodes, which we
(deliberately) don't do. &synchronized provides a best-effort
solution, but it's not great if you need strict semantics.
Robin
--
Robin Sommer * Phone +1 (510) 722-6541 * robin at icir.org
ICSI/LBNL * Fax +1 (510) 666-2956 * www.icir.org/robin
More information about the Bro
mailing list