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 |
Differentiate between managed and unmanaged code?
What is common language specification (cls)?
C++ & C# differences ?
what is event inheritance and event delegation?
Please explain the difference between constants and read-only variables?
How server form post-back works?
Do you know what is the difference between an abstract class and an interface?
where are connection strings stored?
How to customize the trace output?
Explain boxing and unboxing in .net.
What is an assembly? What are the different types of assemblies?
Explain acid properties?