Home > Back-end >  2020-12-10: I is the atomic operations? Why is that?
2020-12-10: I is the atomic operations? Why is that?

Time:12-11

Is the 2020-12-10: i++ atomic operation? Why is that? # # f greatly architects a daily topic

CodePudding user response:

No,
I++ is divided into three stages:
Memory to register
Register on the
Write back to memory
Among the three stages can be separated

CodePudding user response:

Is not atomic operations,
Reason:
I++ is divided into three stages:

Memory to register
Register on the
Write back to memory
Among the three stages can be separated.

CodePudding user response:

No need to worry about learning, only know before type conversion,
  • Related