what is object lock?
Answer / divikiran
The lock keyword marks a statement block as a critical section by obtaining the mutual-exclusion lock for a given object, executing a statement, and then releasing the lock. This statement takes the following form:
Object thisLock = new Object();
lock (thisLock)
{
// Critical code section
}
Is This Answer Correct ? | 1 Yes | 0 No |
What is strong name?
what all type of application can u make with visual studio?
What are object pooling and connection pooling and difference?
How do you turn off cookies for one page in your site? Give an example.
Difference between machine.config and web.config?
what is a strong name?
Do you know what is lambda expressions in c#?
Please explain what inheritance is, and why it's important?
Which Namespace is used to to achieve MultiThreading in .NET?
What is garbage collection and how it works. Provide a code example of how you can enforce garbage collection in .net?
Is .net capable of supporting multi-thread?
What is difference between .net and .net core?