can you please explain me the lock mechanism how it works exactly.
i am unable to get clearly and follow in this link. itz confusing for me..
Please explain with a small example.
if anyone knows , any thoughts about the basics of working with locks will be helpful for me.