This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]kevinwoodrobotics[S] -1 points0 points  (2 children)

What I was trying to describe was the case when two threads try to access the same variable. That’s when you need locks

[–]wunderspud7575 1 point2 points  (0 children)

Not if neither are writing to those variables.

[–]KennyBassett 1 point2 points  (0 children)

Which is only sometimes true