> var counter atomic.Int32
> func increment() {
> if counter.Load()%2 == 0 {
> sleep(10)
> counter.Add(1)
> } else {
> counter.Add(2)
> }
Is "atomic operations composition" a real term? Or it's something like "monolithic microservice"? What does that even mean?
Its a real term in the sense that it's a grammatically correct way of describing multiple atomic operations being composed together...
Deleted Comment
Dead Comment
> var counter atomic.Int32
> func increment() {
> if counter.Load()%2 == 0 {
> sleep(10)
> counter.Add(1)
> } else {
> sleep(10)
> counter.Add(2)
> }
> }
Is "atomic operations composition" a real term? Or it's something like "monolithic microservice"? What does that even mean?
Its a real term in the sense that it's a grammatically correct way of describing multiple atomic operations being composed together...
Deleted Comment
Dead Comment