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 difference between static page and dynamic page?
Explain the difference between static page and dynamic page?
Why MVC programming model preferred?
How do you create threading in .NET? What is the namespace for that?
What is the use of activex control in .net?
What is the difference between .net and laravel?
Explain webfarm vs webgardens in .net?
Types of JIT and what is econo-JIT ?
Difference between Debugging and tracing in .net
Which Namespace is used to to achieve MultiThreading in .NET?
What are data types in .NET?
Is there any thread in our .net programs?