Answer Posted / 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 |
Post New Answer View All Answers
What exactly is being serialized when you perform serialization in .net?
How many namespaces are in .net version 1.1?
Explain me what is the difference between a class and an object, and how do these terms relate to each other?
What is the use of activex control in .net?
Is .net 4.8 backwards compatible?
How can you turn-on and turn-off cas?
What is common type system (cts)?
SAP Business One(this is intigrated tool of .net)
What are the purposes of using .net?
Difference between class and interface in .net?
Explain different types of html, web and server controls.
What is .net latest version?
how can i create a table from front end to back end in wabe page?
What is the difference between function and stored procedure?
Is .net core free?