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 |
How do you create threading in.net?
What are the contents of assembly?
What are the features of UIP Application Block?
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?
How to prepare parametrized (with more than one parameters) crystal report.pls tell me the code procedure, if any body can?
Describe the programming model of a windows service
If we want to write a Windows service that cannot be paused, only started and stopped. How to accomplish that?
How Garbage Collector (GC) Works?
What's the .net collection class that allows an element to be accessed using a unique key?
why do you want to join deloitte, where do you exactly fit in.
What's the problem with .net generics?
Explain code access security.