Rohan  Rathore
What is lock statement in C#?
By Rohan Rathore in C# on Jun 14 2013
  • Amol Sarkate
    Jun, 2015 1

    Exclusive locking in threading ensures that one thread does not enter a critical section while another thread is in the critical section of code. If another thread attempts to enter a locked code, it will wait (block) until the object is released.

    • 0
  • Dominic Roberts
    Nov, 2013 5

    It is a syntactical sugar that wraps up a Monitor in to a try / finally block that ensures that the Monitor is closed when the coding block exits.

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS