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's singleton activation mode in .net?
What are the new features in .net core?
What is Garbage Collection in .Net? Garbage collection process?
What class does icon derive from? Isn't it just a bitmap with a wrapper name around it?
What is connected and diconnected database ?
What is the difference between override and overload in a method?
What are the different types of memory in .net?
What is managed code in .NET?
Please explain what is the difference between a class and an object?
What is file extension of Webservices in .Net?
i have 2 functions, int add(int a,int b); double add(int a,int b); does this code implement overloading? if not what will be the error?
What is the difference between .net 2000 and .net 2005(features)? Which one is better?