When C lock critical section?
Such as two threads access a data at the same time, the need to use critical sections, then visit here is to read or rewrite? Such as a data reading two threads at the same time, I don't think critical region, not sure the answer I ask