Quote:Original post by jonathanjansson
Locking in multithreaded programming has nothing to do with private variables. Locking is just a way of stopping threads so not two of them are writing to the same variable at the same time.
Thank you for clearing that up :), i was thinking that locking in MT prevented IO to that var location.
Bregma, Thanks for your reply, this is really usefull information, i could not find it in any books so far.