I have a main program that holds static object.
The program launches multi-threads. all of this threads access the same static objec.
Problem is that I don't wish to allow access the same object at the same time for multuiple threads.
I wish to use LOCK inside the object....inside the class....and not write LOCK in the threads. this is frustrating.
is it possible?
How do I do that?
View Complete Post