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 many design patterns can be created in .net?
How viewstate is being formed and how it is stored on client in .net?
What is boxing and un-boxing in .net?
What does SCM do?
What is different between webusercontrol and in webcustomcontrol?
What is boxing?
How different are interface and abstract class in .Net?
Tell us the difference between the while and for loop. Provide a .net syntax for both loops?
What is difference between static page and dynamic page?
What is .net core used for?
Explain attributes in dot net?
How to view a .NET assembly?