It atomically increments a 32 bit value and stores it in the same location in memory. You’d want to atomically increment if you have multiple threads reading and writing to the same location. This makes sure that only one thread will increment at a time.
Latest Answers