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 exception handling?
What base class do all Web Forms inherit from?
What is typical about a windows process in regards to memory allocation in .net?
Why you want to leave your previous company.
Please explain what is a delegate?
What are the purposes of using .net?
What is the difference between Dataset and DataReader? Can u breif me ADO.net classes and architecture
Explain the Scope of public/private/friend/protected/protected friend.
How to instantiate a delegate?
How to manage pagination in a page using .net?
what user controls are and what server controls are and the differences between the two.
Explain me difference between public and static modifiers?