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]
Sandhiya Priya(16)
Ananya Desai(5)
Aarav Patel(5)
Aman Gupta(4)
Jitendra Mesavaniya(4)
Mariem Moalla(3)
Tuhin Paul(3)
Baibhav Kumar(3)
Sanjay Kumar(3)
Saurav Kumar(2)
Sai Kumar Koona(2)
Micheal Xavier A (2)
Dashrath Hapani(2)
Aakash Chhillar(2)
Subarta Ray(2)
Abhishek Yadav(2)
Sreenath Kappoor(2)
Anuradha Rani (2)
Niharika Gupta(1)
subramanya m(1)
Subash S(1)
Nabaraj Ghimire(1)
Ajay Kumar(1)
Tanuj (1)
Nidhi Sharma(1)
Pradeep Prajapati(1)
Mahesh Chand(1)
Vishal Joshi(1)
Virendra Kumar(1)
Jay Krishna Reddy (1)
Shobhit Tyagi(1)
Akshay Amin(1)
Avnii Thakur(1)
Shafaet Hossain(1)
Praveen Kumar(1)
Kautilya Utkarsh(1)
Kripanshu Kumar(1)
Velladurai (1)
Shubham Sidnale(1)
Jignesh Kumar(1)
Rajiv Singh(1)
Kirtesh Shah(1)
Varun Setia(1)
Vijay Kumari(1)
Naveen Kumar(1)
Vipul Kumar(1)
Safyan Yaqoob(1)
Lokendra Singh(1)
Priya Chavadiya(1)
Sagar Pardeshi(1)
Muhammad Asif(1)
George (1)
Vikas Singh(1)
Tural Suleymani(1)
Resources
No resource found
XOR Pairs Less Than K
Jun 06, 2026.
Learn how to count the number of pairs in an array whose XOR is less than a given number K using Trie-based optimization. Includes concept explanation, examples, and efficient Java solution.
Count Elements Within a Range Using Sorting and Binary Search
Jun 06, 2026.
Learn how to efficiently count array elements within given ranges using sorting and binary search. Includes intuition, lower bound and upper bound concepts, complexity analysis, and Java solution.
Count Elements Less Than or Equal to x in a Sorted Rotated Array
Jun 06, 2026.
Learn how to efficiently count elements less than or equal to a given value in a sorted rotated array using binary search. Includes concept, pivot detection, and Java solution with O(log n) complexity.
Count Elements in a Given Range Using Sorting and Binary Search
Jun 06, 2026.
This problem involves finding the number of elements in an unsorted array that lie within a given range [a, b] for multiple queries. A naive approach would check each element for every query, resulting in high time complexity. A more efficient solution uses sorting and binary search: Sort the array to enable fast searching. For each query [a, b]: Use a lower bound search to find the first element = a. Use an upper bound search to find the first element > b. The difference between these indices gives the count of elements in the range. This approach significantly reduces time complexity to O(n log n + q log n) while keeping space usage minimal. It’s a classic example of combining sorting with binary search to handle range-based queries efficiently.
Next Element With Greater Frequency – Java O(n) Stack Solution
Jun 05, 2026.
Learn how to solve the Next Element With Greater Frequency problem using HashMap and Monotonic Stack. Includes intuition, dry run, complexity analysis, and optimized Java solution.
Count Subset With Target Sum II – Meet in the Middle Java Solution
Jun 05, 2026.
Learn how to solve Count Subset With Target Sum II using the Meet in the Middle technique. Includes intuition, dry run, complexity analysis, and optimized Java code.
Python Multiprocessing vs Multithreading: When to Use Each
Jun 03, 2026.
Learn the differences between Python Multiprocessing and Multithreading. Understand the GIL, CPU-bound vs I/O-bound tasks, performance, and best use cases.
Count of repeating character patterns in a string using MySQL
May 13, 2026.
Discover how to count repeating character patterns in strings using MySQL. This tutorial provides a step-by-step guide with code examples for text analysis and pattern recognition.
Count Distinct Elements in Every Window
Apr 27, 2026.
Master the sliding window technique! Learn how to efficiently count distinct elements in every window of an array using a HashMap. Java solution and complexity analysis included.
Count Subarrays with K Odd Numbers
Apr 27, 2026.
Master the 'Count Subarrays with K Odd Numbers' problem using the sliding window and 'atMost(k) - atMost(k-1)' technique. Optimize your coding interview prep with this O(n) solution!
Count Increasing Subarrays
Apr 22, 2026.
Learn how to efficiently count strictly increasing subarrays in an array using an optimized O(n) approach. This article explains the concept step-by-step by breaking the array into increasing segments and applying a mathematical formula to count valid subarrays. Includes a clear Java implementation, dry run examples, and edge case analysis—perfect for beginners and coding interview preparation.
Number of Ways to Arrive at Destination
Apr 22, 2026.
Master Dijkstra's Algorithm to find the shortest path and count unique routes to a destination in a weighted graph. Includes Java code and complexity analysis.
How to Implement Thread-Safe Singleton Design Pattern with Lazy
Apr 08, 2026.
Master thread-safe Singleton implementation in C# using Lazy! Learn how to create a single instance class in multi-threaded apps efficiently and avoid common pitfalls. Boost performance with lazy initialization.
What is the Difference Between Task and Thread in C#?
Apr 01, 2026.
Unlock C# concurrency! Master the difference between Tasks and Threads with our easy-to-understand guide. Boost performance & write scalable .NET apps.
Immutability: The Secret Weapon for Reliable C# Applications
Mar 29, 2026.
Unlock the power of immutability in C# for building reliable applications! Learn how immutable objects prevent bugs, ensure thread safety, and simplify debugging. Master the secret weapon for robust .NET software.
Difference between Task and Thread in C#
Mar 26, 2026.
Unlock the secrets of C# concurrency! Explore the Task vs. Thread differences, performance implications, and best practices for efficient, scalable applications.
Parallel LINQ (PLINQ) in C#: Unlocking Multi-Core Performance
Mar 23, 2026.
Unlock multi-core performance in C# with Parallel LINQ (PLINQ). Learn how to parallelize LINQ queries with .AsParallel() for CPU-bound tasks and improve performance. Explore its advantages and disadvantages.
5 Hidden Async & Threading Mistakes in .NET That Break Real Applications
Mar 15, 2026.
Uncover 5 hidden .NET async/threading pitfalls that can silently break real-world applications. Learn to avoid deadlocks, thread pool exhaustion, and performance issues for robust, scalable systems.
What Is the Difference Between Task and Thread in C#?
Feb 23, 2026.
Explore the core differences between Task and Thread in C#. Learn when to use each for optimal concurrency, scalability, and performance in your C# applications.
How to Improve Performance with Threading in .NET
Feb 20, 2026.
Unlock .NET performance! Master threading & parallel programming for responsive & efficient apps. Learn Task-based approaches & avoid common pitfalls. Build scalable systems!
The Restaurant Kitchen Guide to C#: Threads, Tasks, and Avoiding the Dreaded Deadlock
Feb 20, 2026.
Master C# concurrency! This restaurant kitchen analogy demystifies Threads, Tasks, async/await, and deadlocks. Learn when to use Task.Run() and avoid .Wait() for responsive apps.
How Does Threading Work in C#?
Feb 17, 2026.
Unlock C# threading! Learn how to build responsive, scalable .NET apps using threads, Thread Pool, and TPL. Master async/await and synchronization for peak performance.
Async/Await Best Practices in C#: Writing Scalable and Responsive Applications
Feb 12, 2026.
Master C# async/await for scalable apps! Learn best practices for I/O, error handling, and avoiding deadlocks. Build responsive and high-performance .NET applications.
Using Cache in C# with Concurrency
Jan 20, 2026.
Explore C# caching with concurrency! Learn how to use ConcurrentDictionary, handle cache expiration, and prevent duplicated work using SemaphoreSlim for thread safety.
Count Occurrences of an Element in a Sorted Array (Using Binary Search)
Jan 21, 2026.
Master counting element occurrences in sorted arrays efficiently using Binary Search! This guide provides a step-by-step approach, code examples, and avoids common mistakes. Ace your coding interviews!
How Do Developers Debug ANR (App Not Responding) Issues on Android 14 Devices?
Jan 19, 2026.
Tackle Android 14 ANRs! Learn to debug App Not Responding errors with Google Play Console, Logcat, StrictMode, and Android Studio Profiler. Optimize your app now!
Singleton Design Pattern in C# – Simple and Easy Explanation 🔒
Jan 17, 2026.
Master the Singleton pattern in C#! This guide offers a simple, thread-safe implementation, real-world examples, and key rules for efficient coding. Ensure single instance!
How Many Words Are in a Recovery Phrase and Why?
Dec 30, 2025.
Unlock the secrets behind crypto wallet recovery phrases! Learn why 12 or 24 words are used, the security implications, and how to choose the right option for you. Discover the importance of secure storage!
C# LINQ: .ToList() vs .ToListAsync() - Threading Model Analysis and Performance Optimization
Dec 29, 2025.
Unlock C# LINQ performance! Discover the crucial differences between .ToList() and .ToListAsync() for optimal threading, scalability, and I/O efficiency. Boost your app's responsiveness!
C# Timers Explained: PeriodicTimer vs. System.Timers.Timer vs. System.Threading.Timer
Dec 24, 2025.
Demystifying C# Timers! Learn the differences between PeriodicTimer, System.Timers.Timer, and System.Threading.Timer. Choose the right timer for your needs in 2026!
Concurrent Login Control Using Session Count in ASP.NET WebForms
Dec 22, 2025.
Secure your ASP.NET WebForms app! Learn to control concurrent logins using session count, database tracking, and automatic session expiration. Enhance security and prevent misuse.
Differences Between asyncio, Multiprocessing, and Threading in Python
Dec 16, 2025.
Learn the key differences between asyncio, threading, and multiprocessing in Python. This beginner-friendly guide explains how each concurrency model works, when to use them, and includes simple code examples for real-world use cases.
Confused About SharePoint Online File Path Limits? Here’s What You Should Really Count
Dec 10, 2025.
SharePoint Online’s file path limits are often misunderstood. This article breaks down what actually counts toward the 400?character limit, clears up common myths, and shows practical ways to count length. Whether you’re an admin or end user, you’ll learn how to manage paths effectively and keep your files accessible.
Difference Between Task, ValueTask, and Thread in C#?
Dec 04, 2025.
Unlock the secrets of asynchronous programming in C#! Learn the differences between Task, ValueTask, and Thread, and choose the right tool for optimal performance.
Count() vs Any() in C#
Dec 02, 2025.
Unlock C# performance! Discover the crucial difference between Count() and Any() when checking for emptiness in collections and LINQ queries. Learn when to use each for optimal speed, especially with EF Core and large datasets. Avoid performance pitfalls!
Understanding Any() vs Count()
Nov 16, 2025.
Unlock C# performance! Discover when to use Any() vs. Count() for checking collection emptiness. Learn the O(1) vs. O(n) complexities and crucial exceptions for Lists & arrays.
MultiThreading in WPF
Nov 04, 2025.
MultiThreading in WPF
Count vowels and consonants in a string
Oct 29, 2025.
Learn how to count vowels and consonants in a string using C# and ASP.NET! This real-time example provides a step-by-step guide with code and explanations.
Count words in a sentence
Oct 29, 2025.
Learn how to count words in a sentence using ASP.NET WebForms with this real-time example. Includes code snippets and a step-by-step explanation for easy implementation.
Find the frequency of each character in a string
Oct 29, 2025.
Learn how to find the frequency of each character in a string using C# and ASP.NET! This tutorial provides a real-time example with code and explanation.
Count even and odd elements in an array
Oct 29, 2025.
Learn how to count even and odd numbers in an array using C# with this real-time web application example. Includes code, explanation, and input/output examples.
Count frequency of words using Dictionary
Oct 29, 2025.
Learn how to count word frequency in C# using a Dictionary! This real-time webforms example demonstrates a practical implementation with clear steps and code.
Chapter 25: Advanced Browser Features: Web Workers & IndexedDB
Oct 23, 2025.
Unlock the power of advanced browser features! This chapter delves into Web Workers for background processing, enabling responsive UIs by offloading tasks from the main thread. Explore IndexedDB, a robust client-side NoSQL database, perfect for managing complex data and building offline-first applications. Learn to overcome the limitations of Local Storage and enhance your web application's performance and data handling capabilities with these essential APIs.
When Seconds Count: Designing Trigger-Centric Serverless Systems for Public Safety Using Azure Function
Oct 14, 2025.
Unlock the power of Azure Functions for mission-critical systems! This article dives deep into trigger design, focusing on public safety scenarios. Learn why the 'one trigger per function' rule is crucial for scalability, resilience, and clarity. Discover best practices, architectural guidance, and a real-world example of building an emergency response system using Azure Functions, Event Grid, and more. Avoid common pitfalls and build robust, life-saving applications.
How to Implement Connected Component Labeling for Object Counting Using Python
Oct 10, 2025.
Implement Connected Component Labeling (CCL) in Python from scratch using NumPy for object counting in images. This guide provides a step-by-step implementation of the two-pass algorithm with union-find, ideal for resource-constrained environments. Learn to count objects, like wildlife in remote areas, without relying on external libraries like OpenCV.
Count Every Car: Build a Traffic-Smart Vehicle Counter with Connected Component Labeling in Pure Python
Oct 10, 2025.
Build a real-time vehicle counter using Connected Component Labeling (CCL) in pure Python. This guide provides a step-by-step implementation from scratch, ideal for edge devices and traffic management systems. Learn how to accurately count vehicles, even in dense traffic, without relying on external libraries like OpenCV or deep learning.
Count vowels and consonants in a String
Oct 08, 2025.
Master string manipulation by counting vowels and consonants! This fundamental exercise strengthens your understanding of character operations, loops, and conditional statements, crucial for DSA success. Explore C, C++, and Java code examples with detailed explanations. Learn to handle case sensitivity and avoid common pitfalls. Build a solid foundation for tackling more complex string problems.
Why not use Dictionaries in Multi-Thread Apps
Oct 06, 2025.
Explore safer alternatives like ConcurrentDictionary for thread-safe mutable access with fine-grained locking, and ImmutableDictionary for guaranteed thread safety through immutability. Understand the performance trade-offs between speed and safety when choosing the right collection type for concurrent operations.
Async and Await in C#
Sep 22, 2025.
This comprehensive guide simplifies complex concepts, demonstrating how to write responsive and scalable applications. Learn to handle I/O-bound and CPU-bound operations efficiently using Tasks and the Thread Pool. Discover practical tips and best practices for avoiding deadlocks and ensuring smooth user experiences in real-world scenarios like e-commerce and banking apps.
What are child processes, worker threads, and clustering in Node.js?
Aug 18, 2025.
This article explains what child processes, worker threads, and clustering are in Node.js. It uses simple words and examples to help you understand how they work and when to use them.
Why is Node.js single-threaded, and how does it handle concurrency?
Aug 13, 2025.
This article explains in simple words why Node.js is designed to be single-threaded, the role of its event-driven architecture, and how it achieves concurrency using the event loop, asynchronous operations, and non-blocking I/O. Includes clear explanations and code examples in JavaScript.
Synchronous vs Asynchronous Programming with CPU-bound & I/O-bound Examples
Aug 13, 2025.
Learn the differences between synchronous and asynchronous programming in C#, explore CPU-bound vs I/O-bound tasks, and master async/await with real-life analogies, examples, performance tips, and a clear comparison table.
How the Event Loop Works in JavaScript?
Aug 12, 2025.
An in-depth guide to JavaScript’s event loop—how a single-threaded language manages concurrency using the call stack, callback queue, and event loop, both in browsers and Node.js. Includes explanations, diagrams, and related C# Corner articles for further reading.
How Does Python Manage Memory?
Aug 08, 2025.
Dive into the internal memory management system of Python. Understand how Python allocates, tracks, and frees memory using techniques like reference counting, garbage collection, and memory pools.
Difference Between Task, async/await, and Threading in .NET
Aug 06, 2025.
This article explains the core differences between Task, async/await, and traditional Threading in .NET. Learn how they work, when to use each, and how they impact performance, scalability, and readability in your C# applications, with simple explanations and practical code examples.
What is Node.js Architecture
Jul 09, 2025.
Node.js is a fast and lightweight runtime that executes JavaScript on the server side. Its single-threaded, event-driven, non-blocking architecture makes it ideal for real-time, scalable, and efficient web applications.
Common Language Runtime (CLR) in .NET
Jul 02, 2025.
The Common Language Runtime (CLR) is the core of .NET, managing code execution, memory, security, and cross-platform compatibility. It compiles IL to native code, enabling safe, efficient app performance.
Main Features of Node.js – Explained Simply
Jun 30, 2025.
Node.js is a fast, open-source runtime for server-side JavaScript. Its single-threaded, non-blocking, event-driven architecture makes it ideal for building scalable, high-performance, real-time applications across platforms.
Vehicle Count Visualization Using ApexCharts in ASP.NET MVC
Jun 10, 2025.
In this snippet, we are working on visualizing vehicle category counts (B and C) using a donut chart powered by ApexCharts.
NumPy in Python: Sort, Search, and Count Arrays Efficiently
Jun 04, 2025.
Explore NumPy’s powerful sort, search, and count functions with real Python examples. Learn how to efficiently handle arrays, structured data, and conditions for faster, smarter numerical computations.
Thread-Safe Counters and Flags Using Interlocked in .NET
Apr 23, 2025.
Learn how .NET's Interlocked class enables lock-free, thread-safe operations for counters, flags, and atomic updates—perfect for lightweight concurrency control in multithreaded applications without risking race conditions.
C# Singleton Pattern: One Instance to Rule Them All
Apr 16, 2025.
The Singleton Design Pattern in C# ensures only one instance of a class exists and provides a global access point. It's ideal for managing shared resources like logging, configuration, or database connections.
Understanding Aggregate Functions in SQL
Mar 21, 2025.
SQL aggregate functions help perform calculations on multiple rows, returning a single result. This article covers COUNT(), SUM(), AVG(), MIN(), MAX(), and advanced uses like GROUP BY, HAVING, CASE, PARTITION BY, and DISTINCT.
Various Methods to Count Occurrences of Each Number in Array or List
Feb 17, 2025.
In this article, I'll show you different ways to count how often a number appears in C#. We'll look at methods like LINQ, Dictionary, GroupBy, and Parallel.ForEach, and see which ones work best for small and large datasets.
Java Program for Counting the Number of Vowels in a String
Jan 28, 2025.
This article explains how to count the number of vowels (a, e, i, o, u) in a given string using Java. It covers two approaches: a simple method using loops and conditional statements, and a more optimized approach utilizing a Set for quick vowel lookups.
Java Program to Count the Number of Even and Odd in an Array
Jan 27, 2025.
The title "Java Program to Count the Number of Even and Odd Numbers in an Array" refers to a Java program that demonstrates how to count how many numbers in an array are even and how many are odd. The article explains the concept of even and odd numbers, and provides a step-by-step guide on implementing a Java solution using simple loops and conditional statements.
Enhancing Performance and Responsiveness Using Threading in C#
Dec 23, 2024.
Discover how to use threading in C# to make your applications faster and more responsive by running multiple tasks at the same time. Learn key concepts, practical examples, and best practices.
Understanding Parallel.For Method in c#
Dec 23, 2024.
Parallel.For in C# allows executing loops in parallel, improving performance by utilizing multiple processors or cores. It enhances scalability but introduces overhead and requires thread safety for shared resources.
How To Count Occurrence Of Each Character From The String In C#
Dec 21, 2024.
Learn how to count the occurrence of each character in a string using C#. This guide covers step-by-step instructions to efficiently analyze strings and determine the frequency of individual characters.
Implementing Background Tasks in Python
Dec 16, 2024.
This article covers key concepts like concurrency, task queues, and process management, helping you execute time-consuming tasks efficiently without blocking your main program flow.
Enhancing Performance and Responsiveness Using Threading in C#
Dec 13, 2024.
Discover how to use threading in C# to make your applications faster and more responsive by running multiple tasks at the same time.
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.
A Detailed Explanation of COUNT in SQL Server
Oct 01, 2024.
This article explores the differences between SQL counting methods: COUNT(*), COUNT(1), COUNT(column_name), and COUNT(DISTINCT column_name). It highlights their purposes, performance considerations, and use cases, emphasizing the importance of choosing the right COUNT function for efficient queries.
An overview of the Task Parallel Library (TPL) in C#
Sep 17, 2024.
The Task Parallel Library (TPL) is a collection of public types and APIs within the .NET framework that facilitates the integration of parallelism and concurrency into applications.
Virtual Threads in Java JDK
Sep 08, 2024.
Java Virtual Threads, introduced in Project Loom, offer a lightweight alternative to traditional platform threads by allowing the JVM to manage threads instead of the OS. This improves scalability and resource efficiency, enabling applications to handle thousands of concurrent tasks with minimal overhead.
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.
async, await, ConfigureAwait(true/false) Asynchronous Programming in C#
Aug 12, 2024.
Explore asynchronous programming in C# with a focus on async and await keywords. Learn how to use ConfigureAwait(true/false) to manage context switching and avoid deadlocks.
Explain Multiprocessing in Python
Aug 09, 2024.
Explore Python's multiprocessing module to achieve parallelism and optimize CPU-bound tasks. Learn how to create and manage processes, utilize process pools, and improve performance through concurrent programming.
Multithreading in C# Task Creation Using Loop
Aug 06, 2024.
This article introduces multithreading in C# using the Task class from the Task Parallel Library (TPL). It explains creating and executing tasks serially within a loop, ensuring tasks are completed sequentially. An example demonstrates task creation and simulating work with delays.
Understanding Multithreading with the Thread Class in C#
Aug 06, 2024.
Learn how to implement multithreading in C# using the Thread class. This guide covers creating and managing threads, passing parameters, handling exceptions, and using Task for simplified parallelism. Improve your application's performance by understanding these core concepts and techniques.
Count(*) vs Count(1) in SQL
Aug 01, 2024.
When counting rows in SQL databases, both `COUNT(*)` and `COUNT(1)` are used, but there is no performance difference between them. Modern databases optimize both functions similarly. Prioritize code readability by using `COUNT(*)` and focus on optimizing queries through proper indexing and structure instead.
Intra-process vs Inter-process Synchronization in C#
Jul 31, 2024.
In C#, intra-process synchronization involves managing concurrency within a single process using tools like lock, Mutex, and Semaphore. Inter-process synchronization deals with coordination between separate processes using similar mechanisms.
Implementing Thread-Safe Dynamic Arrays
Jul 31, 2024.
Implementing thread-safe, dynamically resizable arrays in C ensures data integrity in multi-threaded applications. Utilize mutex locks for synchronization, condition variables for state management, and resize arrays dynamically to handle concurrent access efficiently.
Java 21: The Latest Features and Improvements
Jul 26, 2024.
Java 21 introduces significant enhancements including Pattern Matching for Switch, Record Patterns, and String Templates. It also features Sequenced Collections, Virtual Threads, and Scoped Values, streamlining concurrent programming and improving code efficiency.
@@ROWCOUNT in SQL Server
Jul 25, 2024.
@@ROWCOUNT is a SQL Server function used to retrieve the number of rows affected by the last executed statement. It provides valuable insights for data manipulation and validation processes, helping to track changes and optimize performance in SQL queries and stored procedures.
Singleton Design Pattern: Detailed Explanation and Practical Examples
Jul 24, 2024.
The Singleton Design Pattern ensures a class has only one instance and provides global access to it. Implementations include Basic Singleton, Thread-Safe Singleton with synchronization, Double-Checked Locking, and Bill Pugh Singleton using a static inner class.
Create a Comment Thread Like Yammer/Viva Engage in PowerApps
Jul 24, 2024.
This guide covers integration with Microsoft 365 tools, setting up social collaboration features, and developing custom business applications to streamline enterprise communication.
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.
Task Scheduling with System.Threading.Timer in .NET
Jul 21, 2024.
Efficient task scheduling is essential for many applications, whether you're building background services, automated tasks, or periodic data processing. In .NET, the System.Threading.Timer class provides a powerful and straightforward way to schedule tasks to run at specific intervals.
Harnessing Efficiency: Lazy Initialization in C# .NET
Jul 17, 2024.
Learn about lazy initialization in C# .NET—a vital design pattern that defers object creation until it's needed, optimizing performance and memory usage. Implementing with Lazy<T> ensures thread safety and responsiveness, ideal for applications needing efficient resource management and scalability.
Total Page hit count in PowerApps.
Jul 16, 2024.
Discover effective methods for monitoring usage statistics, generating insightful reports, and leveraging data visualization to gain actionable insights into app performance and user engagement.
Injecting Dependencies of Different Lifetimes in .NET Applications
Jul 09, 2024.
Understanding dependency lifetimes in .NET is crucial for effective dependency injection. Singleton instances persist throughout the application's lifespan, scoped instances are tied to specific requests, and transient instances are short-lived.
Multi-Threading (5), --- Summary
Jul 08, 2024.
This article will summarize the multi-threading.
Track Views Per Item and Total Page Hits in PowerApps
Jul 05, 2024.
We often see in many of the sites that total page view count is shown. I have come across one of the use case where I wanted to show how many times that page was visited by any user. Another use case we will see how many views requests with details are posted means how many entries are made for any requests.
Query to find Table Name, Row Count, Column Count and Data Size
Jul 02, 2024.
This guide covers techniques to query and display table names, row counts, column counts, and data sizes efficiently. Ideal for database administrators and developers seeking to optimize data management and performance analysis.
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.
Understanding Threads and Multithreading in Java
Jun 26, 2024.
This article explains the concepts of threads and multithreading in Java, highlighting their benefits, lifecycle, and examples, along with the advantages and disadvantages of using multithreading in programming.
Synchronizing Threads with AutoResetEvent in C# .NET
Jun 23, 2024.
In multithreaded C# applications, synchronizing thread execution is crucial to avoid race conditions and ensure controlled access to shared resources. The AutoResetEvent class helps manage this by acting like a gate, blocking threads until signaled.
Performance Optimization in ASP.NET MVC Applications
Jun 15, 2024.
Performance optimization in ASP.NET MVC involves techniques like efficient data access, using Entity Framework wisely, implementing caching, using async/await for non-blocking operations, minimizing ViewState, bundling and minifying resources, enabling GZIP compression, optimizing queries.
The One Behind Concurrency in C#
Jun 04, 2024.
The Thread Pool in C# simplifies concurrency by managing threads for you. Unlike creating and managing threads yourself, the Thread Pool offers a pool of reusable threads, improving performance and reducing complexity. It's ideal for short-lived tasks like calculations or processing data.