I’m trying to understand whether a process would interfere another process running on the same piece of hardware system. This could happen in a wild range of products. ie. vmware or as simple as running multiple .net applications.
If I have repetitive lock happening of a particular process say, interlock, or lock keywords in C# terms, will it affect the performance other processes due to its intensive usage of lock? The setting is a heavy loaded www system, and I am experience some situational delay, I would like to determine whether the delay was caused by a dense while loop of locks that was completely isolated by a different windows kernel thread.
If there is no isolation, will application domain in .net help me in this case?
Thanks for your answer
No it won’t. A
lockin C#, and .Net overall, is local to a process. It can’t directly affect other processes on the machine.A
lockstatement operates on a particular instance of an object. In order for alockto effect multiple processes they would all have tolockon the same instance of an object. This is not possible since objects are local to a process.