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 |
Explain how to rename a table using sql queries?
How WSDL is stored ?
How to get the number after decimal point in .net?
Difference between assembly manifest & metadata
How to Create and Consume a Web Service?
What is CCW (COM Callable Wrapper)
Explain what is the difference between response.redirect & server.transfer?
What are the Characteristics of .NET?
Can any object be stored in a viewstate in .net?
What are the new thee features of com+ services, which are not there in com (mts)?
As you know read-only variables and constants have many similarities, but what is at least one way that they differ?
What is the difference between reference type and value type?