7 posts about Lock by 7 contributors.
Know Lock? Share what you know with developers who are learning it.
Concurrency advice is usually delivered as rules: "use lock ", "prefer Interlocked ", "avoid shared state". Rules are easier to remember when you have watched them fail. So I built a deliberately small experiment, incrementing one counter 100,000 times with Parallel.For , and measured what happens w
Compare lock, Monitor, and SemaphoreSlim in C# to choose the right tool for mutual exclusion, thread signaling, async code, and limiting concurrency.
The LOCK keyword is the most popular mutual-exclusive thread synchronization construct. The LOCK statement in C# is crucial for thread synchronization, preventing race conditions by restricting access to shared resources. Under the hood, it translates to the Monitor class, enhancing code efficiency and reliability.
Concurrency is vital for efficient applications. .NET offers Thread, Multithreading, Task, Async & Await, Threadpool, Lock, and Deadlock tools. Understanding them enhances .NET development for scalable and responsive apps.
In this article, I am going to show how to shutdown, restart, Lock, Logoff, Sleep etc. through C# Code.
This article is about how to lock, logoff, reboot, shutdown and put the system to hibernate and standby mode.
SQL Server architecture, transaction, ACID properties, isolation level, index, type of index, maximum, size, row,Active, Passive, SQL Server, lock, delete, truncate, OLAP, constraints,
DevSocialUpcoming · 3rd editionAI Agents ConferenceNov 23–27, 2026Live onlineMembers only17days leftRegisterPublish an article in this category and earn +1,000 SHARP when it is approved.
Write an article