|
|
|
|
|
by karmakaze
1764 days ago
|
|
It is a locking convention, achieving something locks are used for, but you can't point to one thing and say, there, that's the lock. Contrast with a database row lock where no other transaction can change that row or get a locked access to it until released. e.g. if the version column is an incrementing number, then it relies on no client unilaterally incrementing the value on failure and retrying--not much of a 'lock'. |
|
Nobody would call CAS a lock. If your system only uses CAS, it should rightly be called “lock-free”.