Related resources for Lock Statement
  • Difference between lock(this) and lock(privateObj) in C#8/22/2024 5:27:38 AM. In multi-threaded C# programming, the lock statement ensures that critical code sections are accessed by only one thread at a time. While lock(this) locks on the current instance, it can expose your o
  • Illustrates the use of the lock in multithreading application8/17/2006 2:10:26 AM. Any application must have one or more processes. A Process is structural unit with a memory block and using some set of resources. For each executable, the Windows operating system creates some isolated memory block. This article tries to explain the use of lock basics of Multithreading in C# .Net.