Talk:Atomic updates

Revision as of 12:44, 17 May 2009 by rosettacode>Dmitry-kazakov (Is it about mutexes?)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Please clarify the task. Transfer of a bucket value cannot be defined atomic operation while preserving the object's invariant. The solutions presented are incorrect in this sense because they do not have transfer safe. They rather provide an unsafe transfer with locking the object externally (to the transfer). Because transfer does not keep the object's invariant it is not an operation of. So what was the purpose of the task? Just to show a use of mutex? Then the task looks superfluous, since there is already mutex task. --Dmitry-kazakov 12:44, 17 May 2009 (UTC)

Return to "Atomic updates" page.