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
One user deleted one row after that another user through his dataset was trying to update same row. What will happen? How will you avoid this problem?
What are pdbs?
Explain me what is the difference between an abstract class and an interface?
Write Code for DataSet,Datareader,and by deleting the button gridview should be empty?
What are an object and a class?
Explain the garbage collection process?
What is the difference between server.transfer and response.redirect? Why?
Which file is taken by compiler when we have both file Application and Server Configuration file?
What is "common language specification" (cls) in .net?
When should I use .net core?
How to implement CAS in .Net?
I have a problem in installing visual Studio 2008 on PC that have Celeron Processor ? afterAll InstallionFaied . Pls suggest me . Is it possible or not .if Yes then How ?
Please explain what is the difference between constants and read-only variables?
Explain about Behavioral design pattern?
What are the deferred execution and the immediate execution in linq?