C# Corner
Tech
News
Videos
Forums
Trainings
Books
Live
More
Interviews
Events
Jobs
Learn
Career
Members
Blogs
Challenges
Certifications
Bounties
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Tags
No tag found
Content Filter
Articles
Videos
Blogs
Resources
News
Forums
Interviews
Complexity Level
Beginner
Intermediate
Advanced
Refine by Author
[Clear]
Rajesh Gami(5)
Arun Choudhary(4)
Ananya Desai(4)
Ayush Gupta(3)
Akshay Teotia(3)
Nidhi Sharma(2)
Onkar Sharma(2)
Vijayaragavan S(2)
Kartik Kumar(2)
Sr Karthiga(2)
Prabhakar Maurya(2)
Manish Sharma(2)
Satya Prakash(2)
Baibhav Kumar(2)
Jayant Kumar(2)
Munish A(2)
Jean Paul(2)
Shivprasad (2)
Vijay Kumari(2)
Divyansh Gupta(1)
Najath Risni(1)
Catcher Wong(1)
Hariharan Krishnan(1)
Mushtaq M A(1)
Dhruvin Shah(1)
Shubham Sharma(1)
Rohit Tomar(1)
Anas Chaudhary(1)
Abhay Shanker(1)
Abhishek Kumar(1)
Abhishek Kumar Ravi(1)
Kunal Chowdhury(1)
Jignesh Trivedi(1)
Gaurav Gupta(1)
Sanjoli Gupta(1)
Subal Mishra(1)
Riya Patel(1)
Saurav Kumar(1)
Darshan Adakane(1)
Mahesh Chand(1)
Tuhin Paul(1)
Anup Hosur(1)
Vipul Kumar(1)
Jitendra Mesavaniya(1)
Sanjay Kumar(1)
Rasul Huseynov(1)
Ajay Kumar(1)
Ravikant Sahu(1)
Venkatasubbarao Polisetty(1)
Rumeel Hussain(1)
Vipin Tyagi(1)
Thivagar Segar(1)
Sriram Hariharan(1)
Waqas Sarwar(1)
Manpreet Singh(1)
Prashant Sharma(1)
Sonu Chaudhary(1)
Prakash Tripathi(1)
Abhishek Sur(1)
Hemant Srivastava(1)
Aman Singhal(1)
Meet Agarwal(1)
Shubham Srivastava(1)
Adarsh Acharya(1)
Vijai Anand Ramalingam(1)
Uday Gaikwad(1)
Mohammad Elsheimy(1)
Thiagarajan Alagarsamy(1)
Niharika Gupta(1)
Abhishek Yadav(1)
Sarthak Varshney(1)
Amit Mohanty(1)
Resources
No resource found
Why Does MySQL Lock Tables During Heavy Traffic?
Feb 13, 2026.
Unlock MySQL performance! Discover why table locking occurs during heavy traffic, impacting speed. Learn to optimize InnoDB, indexing, and transactions for scalability.
Real-Time Distributed Lock Indication in UI using Angular
Dec 03, 2025.
Implement real-time distributed lock indication in Angular UIs to prevent data conflicts. Learn architecture, code examples, and production best practices. Enhance collaboration!
How to Reduce Lock Contention in SQL Server Financial Ledger Tables
Dec 02, 2025.
Reduce SQL Server lock contention in financial ledger tables! Implement practical techniques like RCSI, insert-only patterns, and optimized indexing for high-concurrency.
Understanding the Python Global Interpreter Lock (GIL)
Apr 23, 2024.
The Python Global Interpreter Lock (GIL) is like a traffic cop inside your computer that makes sure only one thing happens at a time in Python, even if your computer has multiple processors.
How to Lock Windows 11 PC Automatically when you're Away
Jan 24, 2024.
Windows 11's Dynamic Lock feature automatically locks your device when you step away.
How To Lock File And Folder Using Command Prompt (CMD) In Windows 10
Dec 26, 2019.
In this article, I have described how to Lock and Unlock any file and folder using the command prompt (Cmd) in windows 10.
Screen Lock Active Or Release In Xamarin Forms Application Using Xamarin Essentials For Android And UWP
Nov 16, 2018.
Reading this article, we can learn how to How to Keep your screen asleep while your application running in Xamarin Forms application using Xamarin Essentials for Android and Universal Windows Platform with XAML and Visual C# in cross-platform application development.
Creating Distributed Lock With Redis In .NET Core
Jul 16, 2018.
Learn how to implement a distributed lock using Redis in .NET Core. This guide covers the essentials of setting up Redis for distributed locking, managing concurrency, and ensuring data consistency in your .NET Core applications.
Swipe Lock In Android Using Android Studio
Apr 09, 2018.
In this article, we are going to learn how to add Swipe Lock functionality to an Android application using Android Studio.
Google Smart Lock In Android
Apr 07, 2018.
By integrating Smart Lock for Passwords into your Android app, you can automatically sign users in to your app using the credentials they have saved. Users can save both username-password credentials and federated identity provider credentials. Integrate Smart Lock for Passwords into your app by using the Credentials API to retrieve saved credentials on sign-in.
How To Lock Objects In Power BI
Nov 11, 2017.
Sometimes, there is a situation where when we open a report and click on any visuals, it accidentally nudges a chart a little bit to the right or left. Sometimes, by mistake when end user viewing a report, arrangement of visuals scatters little bit. Microsoft rolls out one new amazing feature to resolve this issue and that is Lock Objects in Power BI.
How To Disable Cortana On Lock Screen In Windows 10
Oct 05, 2016.
In this article, you will learn how to disable Cortana on lock screen in Windows 10.
How To Enable Cortana On Lock Screen In Windows 10
Oct 04, 2016.
In this article, you will learn how to enable Cortana on lock screen in Windows 10.
How To Change Windows 10 Lock Screen Timings
Aug 31, 2016.
In this article, you will learn how to change windows 10 Lock screen timings.
Fingerprint Lock Using Arduino Mega 2560
Feb 27, 2016.
In this article I will explain about Fingerprint Lock using Arduino Mega 2560.
Door Lock By Keypad Using Arduino
Feb 08, 2016.
In this article, I will explain about the locking and unlocking door by keypad using Arduino.
Turn On/Off Notifications in Lock Screen in Windows 10
Aug 07, 2015.
In this article, we will tell you how to turn on/off notifications in the Lock Screen in Windows 10.
Parallel Sorting, Exact Numeric Operations and Stamped Lock in Java 8
Jan 16, 2015.
This article describes some of the new features of Java 8
Login Form in 3-Tier Architecture With Lock in ASP.Net
Jun 30, 2014.
This article explains how to implement a login form using ASP.NET C# in a three-tier architecture.
Monitor And Lock In C#
Jun 14, 2014.
C# Lock and C# Monitor are two keywords used in thread synchronization in C#. Here are C# Lock and C# Monitor code examples.
Change Your Lock Screen in Windows Phone
Apr 30, 2014.
In this article, we are targeting Lock Screen manipulation. In earlier versions, you can change the Lock Screen's image programmatically. But, in Windows Phone 8 SDK you can do it easily with a few lines of code.
How to Change the Windows 8 Lock Screen Programmatically
May 16, 2013.
Just follow the simple procedure in this article to write an application by which you can easily change your Windows 8 Lock Screen programmatically.
How To Prevent Dead Lock in Entity Framework
May 02, 2013.
Recently I am working on Entity Framework as a data access layer-based Project. We found many performance issues with this application.
Change Windows 8 Lock Screen Programmatically in Windows Store Apps
Apr 09, 2013.
In this article we explain how to change the Windows 8 Lock screen programmability in Windows Store apps.
Enable Console Lock Display Off Timeout in Windows 8
Dec 15, 2012.
In this article I have described how to set Console lock display off timeout in the Windows 8 Power Options.
Set Numeric Lock On in Windows 8
Nov 29, 2012.
In this article I will show how you can keep the NumLock on always when your Windows 8 system starts.
How to Set Custom Image on Lock Screen in Windows 8
Nov 27, 2012.
n this article we are going to explain how to set custom image on lock screen.
Change Background Image of Lock Screen in Windows 8
Sep 24, 2012.
In this article I have described the way to change the lock screen background image in Windows 8.
Enable the Lock Screen in Windows 8
Sep 22, 2012.
This article describes how to enable the Lock Screen in Windows 8.
Restrict User From Changing Lock Screen Image In Windows 8
Sep 07, 2012.
This article describes how to restrict a user from changing the lock screen image.
Disable Lock Screen in Windows 8
Aug 09, 2012.
This article describes how to disable the Lock Screen in Windows 8.
Disable Application Notification on the Lock Screen in Windows 8
Aug 06, 2012.
This article describe about how to disable Application Notification on the Lock Screen in Windows 8.
Prevent Changing of Lock Screen Image in Windows 8
Jul 16, 2012.
This article describes how to prevent modification of the Lock Screen Image in Windows 8.
How to Lock Your Keyboard in Windows 8 to Prevent Keystrokes
Apr 10, 2012.
In this article, I will explain how to lock you keyboard in Windows 8
Illustrates the use of the lock in multithreading application
Aug 17, 2006.
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.
Implementing Distributed Locking in .NET with Redis
Jul 31, 2026.
Implement distributed locking in .NET with Redis to prevent duplicate processing in scaled applications. Learn patterns, testing, and best practices.
How to Handle Concurrency in SQL Server with Locking Mechanisms?
Apr 13, 2026.
Master SQL Server concurrency! Learn locking, row versioning, isolation levels, and performance tuning to prevent deadlocks and ensure data integrity. Optimize your database!
Handling Concurrent Database Access in .NET: Understanding Locks, Transactions, and Optimistic Concurrency
Jan 16, 2026.
Master .NET database concurrency! Learn to handle simultaneous access with locks, transactions, and optimistic concurrency. Prevent data conflicts and ensure data integrity using practical examples.
Redis Distributed Locks Explained: Safe Patterns, Pitfalls, and Real World Usage
Jan 12, 2026.
A practical, human written guide to Redis distributed locks. Learn when to use Redis locks, how to implement them safely, common locking mistakes in production, and why most Redis locking bugs are self-inflicted.
How Does Vesting And Lockup Work
Dec 11, 2025.
A complete explanation of vesting, lockup mechanisms, cliff periods, and token release complexities, illustrated with diagrams to help founders and investors understand how these systems protect price and long term value.
Designing a Distributed Job Locking System | .NET + Redis + SQL
Nov 21, 2025.
Prevent duplicate job execution in distributed systems! This .NET guide covers Redis & SQL locking, fencing tokens, leases, monitoring, and best practices.
SQL Server Concurrency Framework (Deadlock Retry, Optimistic/Pessimistic Mix)
Nov 20, 2025.
Build a robust SQL Server concurrency framework! Master deadlock retry, optimistic/pessimistic locking, and version tokens for scalable, reliable data handling.
Building a Document Overwriting Protection System (Leases, Locks, Expiry) with Angular + .NET
Nov 19, 2025.
Prevent document overwriting in multi-user apps! Learn to build a robust locking system with Angular and .NET 8, featuring leases, expiry, and conflict resolution.
Locking Down Financial Transaction APIs: Enforcing IP Restrictions on Azure Functions in Real-Time Payment Systems
Oct 16, 2025.
Secure real-time payment systems using Azure Function IP restrictions. This article provides a step-by-step guide to implementing network-level access control, crucial for financial services compliance (PCI DSS, PSD2). Learn how to allow traffic only from trusted sources, preventing unauthorized API calls and bolstering zero-trust security. Includes Azure CLI scripts, testing strategies, and operational best practices for enterprises processing instant SEPA or FedNow payments.
Understanding package.json and package-lock.json in Node.js
Sep 26, 2025.
This article clarifies the roles of package.json and package-lock.json. Learn how package.json defines dependencies and project metadata, while package-lock.json ensures consistent installs across environments by locking exact versions. Understand the impact of deleting package-lock.json and best practices for reliable Node.js development.
What is the purpose of npm, package-lock.json, and the command npm ci?
Aug 14, 2025.
This article explains what npm is, the role of package-lock.json, and the purpose of the npm ci command in Node.js projects, using clear and simple language with examples.
SQL Server Transaction Locks: Identification & Resolution
May 28, 2025.
Learn how SQL Server transaction locks ensure data integrity, identify locking issues using DMVs and Activity Monitor, and explore strategies like query optimization, isolation levels, and deadlock resolution for better performance.
Data Consistency in ASP.NET Core Microservices with Locks
Feb 24, 2025.
This article explores how to use distributed locks to manage concurrent operations, prevent race conditions, and maintain data integrity across microservices efficiently.
Difference between lock(this) and lock(privateObj) in C#
Aug 22, 2024.
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 object to external locking, leading to potential deadlocks.
Enhancing Performance and Safety with System.Threading.Lock in .NET 9 and C# 13
Jul 22, 2024.
Explore the new System.Threading.Lock in .NET 9 and C# 13 for enhanced multithreading performance and safety. This article covers its benefits, compiler warnings for misuse, and best practices for locking in older versions.
Benefits of Locking and Unlocking Objects in C#
Jul 02, 2024.
Object locking in C# ensures controlled access to shared resources in multithreaded environments, preventing race conditions and maintaining data integrity. By using the lock statement, you can synchronize threads, ensuring thread safety and avoiding deadlocks.
Under The Hood Of Thread Synchronization With LOCK
May 15, 2024.
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.
SQL Locks for Data Integrity in Concurrent Environments
May 14, 2024.
Understanding SQL Locks: Ensuring Data Integrity in Concurrent Environments
Lock and Monitor in C#
Sep 22, 2023.
Explore the power of C# multi-threading and learn to manage concurrency with lock and Monitor. Prevent synchronization issues in concurrent code effectively.
Lock Screen in Jetpack Compose
Aug 25, 2023.
This article will describe how we can create a lock screen in Android with Jetpack Compose.
Lock Workstation in Desktop flow using Microsoft Power Automate
May 13, 2023.
Reading this article, you can learn how to Lock the workstation, using the Lock workstation action in a workstation group of actions with Desktop flow using Microsoft Power Automate.
Business Rules With Actions Lock, Unlock And Show Error Message
Aug 11, 2021.
In Dynamics 365 CRM or Power Platform, Business rules provide a quick way of applying business conditions every business rule starts with a condition. In this article we are going to see about 2 Actions Lock/Unlock and Show Error Message with a business scenario on contact entity if Vaccination is done, then lock discount field and if Vaccination is not done and when user tries to enter discount more than 50% then an error message will be shown to the user that maximum discount cannot exceed 20 % else no discount.
Locking In Azure Resource Groups
Aug 18, 2020.
In this article, you will learn about Locking in Azure Resource Groups.
Bluetooth Controlled Door Lock
May 29, 2018.
In this article we are going to see how to work with Bluetooth, servo motor, and Arduino
Resolving "File Checked Out Or Locked For Editing" Issue In SharePoint
May 22, 2018.
A common issue in SharePoint is being unable to delete a folder due to it being checked out or locked for editing by another user. This often happens even if the user has full rights. The problem can occur if versioning is disabled, causing files to be checked out without a check-in version.
Delete The Locked Documents From SharePoint
Jan 18, 2018.
This blog will help you to understand the record declaration functionality in SharePoint Online.
Azure Service Bus - Peek-Lock A Message From Queue Using Azure Logic Apps
Oct 26, 2017.
In this article, we will take a look at how you can peek-lock on a message from a Service Bus Queue without actually reading the message from the queue.
Automated Window Lock
Oct 19, 2017.
In this article, we are going to see the light intensity controlled window which automatically locks when it gets dark or light intensity is reduced.
SharePoint 2016 Central Admin - Application Management - Configure Quotas And Locks
Jan 29, 2017.
In this article you will learn about configuring Quotas and Locks in SharePoint 2016 Central Admin.
Site Collection Quotas And Locks In SharePoint 2013 Central Administration
Jan 26, 2017.
In this article you will learn about site collection quotas and locks in SharePoint 2013 central administration.
Enabling Spotlight Images On Windows 10 Lockscreen
Dec 28, 2016.
In this article, you will learn more about how to enable Windows Spotlight images on the lockscreen of Windows 10.
Locks In SQL Server
Apr 27, 2016.
In this article you will learn about Locks In Sql Server.
Threading Simplified: Part 9 (Thread Locking)
Mar 06, 2016.
This article explains what Thread Locking is and how to use it efficiently in a multithreading environment.
Lock The OOB Edit Form In SharePoint
Sep 14, 2015.
In this article we can explore a typical real-world scenario of locking OOB Edit Forms in SharePoint.
Monitor For Thread Locking Using ReaderWriterLocking
Feb 01, 2014.
This article explains use of a Monitor for thread locking using ReaderWriterLocking.
Automatic System Locking Using Timer
Jun 12, 2013.
In this article, I am going to show how we can lock the system automatically using a timer.
Lock Down IE 10 by Disabling Flash in Windows 8
Nov 28, 2012.
In this article we are going to explain how to lock down IE 10 by disabling Flash in Windows 8.
Reporting - Locking the New Bug or Defect Using Microsoft Test Manager 2010
Nov 20, 2012.
In this article, you will learn how to report or lock the new bug in testing using the Microsoft Test Manager 2010.
Lock Folder Using Cmd in Windows 8
Oct 01, 2012.
This article describes how to lock a folder using Cmd in Windows 8.
Locking System in Windows Phone 7
Mar 20, 2012.
In this article we will implement a locking system for Windows Phone 7 applications.
Create a File Attributes Changer / Locker in a C# Windows Application
Jan 28, 2012.
In this project I have created not a file locker but a user friendly file attributes changer.
ReaderWriterLock Class in C# Threading
Jan 07, 2012.
The ReaderWriterLock class is used to synchronize access to a resource. At any given time, it allows concurrent read access to multiple (essentially unlimited) threads, or it allows write access for a single thread.
Spinlock Class in Threading C#
Jan 04, 2012.
System.Threading.SpinLock provides a mutual exclusion lock primitive where a thread trying to acquire the lock waits in a loop repeatedly checking until the lock becomes available.
Thread Locking In C#
Dec 03, 2011.
Exclusive locking in C# threading ensures that one thread does not enter a critical section while another thread is in the critical section of code.
Lock or Unlock site collections in SharePoint 2010
May 16, 2011.
In this article we will be seeing how to lock or unlock site collections in SharePoint 2010.
When to use lock
Feb 21, 2011.
The lock keyword in C# provides good control over a multi-threaded application.
6 Ways of Doing Locking in .NET (Pessimistic and Optimistic)
Sep 28, 2010.
This article talks about 6 ways of doing locking in .NET. It starts with concurrency problems and then discusses about 3 ways of doing optimistic locking.
3 Ways of Doing Optimistic Locking in .NET
Sep 18, 2010.
In this article we will touch base 3 ways of doing optimistic locking i.e. Using ADO.NET dataset, SQL Server Timestamp check and old / new value check.
Global.asax in ASP.NET for locking web pages, security and license management system
Jun 21, 2010.
In this article we will see that global.asax file events. So we can use this every web application for application control, state and Application management , locking web pages , security of web application and license management system.
Bad Practices: Locking on Non-shared Objects in Multi-threaded Applications
Apr 24, 2010.
In this article we will see one of the bad practices developers always do.
Lock, Logoff, Reboot, Shutdown, Hibernate, Standby in .Net
Feb 13, 2007.
This article is about how to lock, logoff, reboot, shutdown and put the system to hibernate and standby mode.
uv Package Manager Explained: Why Python Developers Are Replacing pip
Jul 16, 2026.
Learn what uv is, how it works, and why Python developers are replacing pip with a faster, modern package manager for dependency and environment management.
Terraform State Management Best Practices for Enterprise Teams
Jul 07, 2026.
Master Terraform state management for enterprises: secure, efficient, and scalable IaC with best practices for teams.
How to Implement Optimistic Concurrency Control in SQL Server?
Apr 21, 2026.
Learn how to implement optimistic concurrency control in SQL Server step by step using RowVersion with examples, conflict handling, and best practices.
How to Prevent Race Conditions in Distributed Systems?
Mar 03, 2026.
Prevent race conditions in distributed systems! Learn about idempotent operations, distributed locks, optimistic concurrency, and more. Ensure data integrity.
How MongoDB Handles Concurrent Users
Feb 06, 2026.
Explore MongoDB's concurrency model: document-level locking, snapshot isolation, and efficient resource management. Learn how it handles thousands of concurrent users.
Prevent Cache Stampede and Thundering Herd Problems in Redis
Dec 29, 2025.
A practical, human written guide to preventing cache stampede and thundering herd issues in Redis. Learn why it happens, how it breaks production systems, and proven strategies teams use to stop it.
Redis in C# — A Technical Overview
Dec 04, 2025.
Explore Redis with C# using StackExchange.Redis for caching, distributed locks, and pub/sub. Enhance .NET application performance and scalability with this in-memory data store.
Entity Tag (ETag) in Power Apps – A Complete Guide
Nov 25, 2025.
Unlock the power of Entity Tags (ETags) in Power Apps! This comprehensive guide demystifies Etags, the hidden version identifiers crucial for preventing data conflicts in multi-user environments. Learn how Etags ensure data consistency, enable optimistic concurrency control, and facilitate safe collaborative editing. Discover best practices for handling ETag conflicts and build robust, scalable Power Apps that guarantee data integrity. Master ETag for reliable approval workflows and secure transactional operations.
iOS 18 Release: New Features and Enhancements
Jan 10, 2025.
Apple's iOS 18, launched on September 16, 2024, introduces groundbreaking features like app locking, eye control, satellite messaging, and enhanced AI, redefining personalization, security, and productivity for iPhone users.
What's New in ASP.NET Core 9?
Nov 15, 2024.
C# 13 enhances developer productivity with features like flexible params collections, scoped locks, and partial properties, allowing for streamlined coding, improved performance, and robust thread safety.
Getting Started with ZooKeeper: A Beginner's Guide
Jun 20, 2024.
Learn the basics of Apache ZooKeeper, a distributed coordination service, including its architecture, installation, usage, and practical examples.
SQL Concurrency: Maintaining Data Integrity in Concurrent Environments
May 14, 2024.
Concurrency in databases enables multiple users or processes to access and modify data concurrently, enhancing performance. SQL concurrency ensures data consistency and integrity through locking mechanisms and advanced techniques like MVCC.
Exploring the Fundamentals of Concurrent Programming in .NET
Apr 19, 2024.
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.
How To Protect Files And Folders In Windows 10
Mar 11, 2020.
In this tutorial, I have discussed how to create a protection on file and folder in Windows 10.