[Pharo-dev] Lock-free Atomic Counter ?

Sven Van Caekenberghe sven at stfx.eu
Wed Apr 2 18:11:59 EDT 2014


Hi,

Is it possible to have a simple lock-free atomic counter in Pharo 3.0 ?

nextId
  ^ idCounter := idCounter + 1

Or is it still possible that two process entering this code can mess things up ?

I vaguely remember a discussion about that long ago...

TIA,

Sven



More information about the Pharo-dev mailing list