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 lambda expressions in c#?
What is delegation in .net?
What are the namespace available in .net?
What is the concept of inheritance in .net?
What is an interface and what is an abstract class? Please, expand by examples of using both. Explain why?
What data providers available in .net to connect to database?
Is there any thread in our .net programs?
How will you load an assembly which is not referenced by current assembly?
What are Satellite Assemblies? How you will create this? How will you get the different language strings?
Will my .net app run on 64-bit windows?
How many types of exception handlers are there in .NET?
How to implement getcommon method in class a? Are you seeing any problem in the implementation?