Nov. 25, 2011
3:49 p.m.
On 25 November 2011 16:25, Pablo Herrero <pablodherrero@gmail.com> wrote:
2011/11/24 Igor Stasenko <siguctua@gmail.com>:
i would discourage using such things.
can you tell , why you need it?
We're developing a STM library, we need to make sure when a proccess is commiting a transacction, nobody else is using the same objects which are been updated.
Usually for this you just use critical sections. sema := Semaphore forMutualExclusion. process1: sema critical: [ here you modify your data ] process2: sema critical: [ here you commit your data ] so, why this is not appropriate for your model? -- Best regards, Igor Stasenko.