Hi,
In my class there are more than one methods to be accessed using lock statement because of multiple threads. Can I use same locker object such as
'static lock as new object ' or should use as many number of lock objects as number of methods? Which way I can ensure no deadlock happens?
i will be grateful for any hints or suggestions...
In my class there are more than one methods to be accessed using lock statement because of multiple threads. Can I use same locker object such as
'static lock as new object ' or should use as many number of lock objects as number of methods? Which way I can ensure no deadlock happens?
i will be grateful for any hints or suggestions...