Go to DotNetFunda.com
 Online : 1932 |  Welcome, Guest!   Login
 
Home > Interview Questions > C# Interview Questions > What is lock statement in C#? ... ...

  • Download the OOPS, ASP.NET and ADO.NET Training Videos for FREE, click here.

call for mock interview

C# Interview Questions

What is lock statement in C#?

Author: Raja | Posted on: 4/8/2008 9:11:18 AM | Category: C# | Views:1436 |  Print Source: http://msdn2.microsoft.com/en-us/library/c5kehkcz(VS.80).aspx | | Asked In: Microsoft


Answer:
Lock ensures that one thread does not enter a critical section of code while another thread is in the critical section. If another thread attempts to enter a locked code, it will wait, block, until the object is released.

Interesting?   Share and Bookmark this


Navigate to:

 Submit Interview Questions

What is the use of Monitor in C#? ...

Is overriding of a function possible in the same class? ...

Random Interview Questions
Help: If for some reason you are getting the same question by clicking Next Question or Previous Question, Try clicking Categories link above.

Related interview questions



Advertisement

About Us | The Team | Advertise | Contact Us | Feedback | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you found copied contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
All rights reserved to DotNetFunda.Com. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks.
(Best viewed in IE 6.0+ or Firefox 2.0+ at 1024 * 768 or higher)