C# Corner

  About Threading

The Theading term is used in operating system to achieved multitasking to increasing the speed of process. The only one Thread is the smallest unit of processing that can be performed in an OS. In most modern operating systems thread run in single process may contain multiple threads. Theading is way in which we can run number of small threads. When multiple threads are running concurrently then it is is known as multithreading which is similar to multitasking. Basically in operating system with multitasking capabilities allows programs to run seemingly at the same time. On the other hand a single program with multi Theading capabilities allows individual sub processes to run seemingly at the same time.

Related resources for Threading
  • How To Create Daemon Thread In Java9/19/2019 5:47:56 AM. In this article we discuss how to create a Daemon thread in Java.
  • Introduction To Deadlock In Java9/18/2019 11:55:07 PM. In this article, we will discuss Deadlock in Java. Deadlock is a condition where two or more threads are blocked forever, waiting for each other to release the resource (for execution) but never get t
  • Threading in Java9/12/2019 4:08:43 AM. In this article you can learn the basic steps of creating a thread; this article provides two ways for creating your own thread in Java.
  • First Step to Java's Multithreading9/10/2019 6:22:47 AM. This article helps you to understand the basics of Java's Multithreading, in a nutshell.
  • A Complete MultiThreading Tutorial In Java9/9/2019 11:33:16 PM. Multithreading in Java is a process of executing multiple threads simultaneously. A thread is the smallest unit of the processing. Multithreading and Multiprocessing, both are used to achieve multitas
  • Join, Sleep And Abort In C# Threading6/10/2019 9:54:04 PM. C# Sleep() method of Thread class is useful when you need to pause a program in C#. Code examples how to use Thread.Join(), Thread.Sleep(), and Thread.Abort() methods in C#.
  • Threads In C#6/2/2019 7:43:12 AM. Threading in C# - Threads in .NET are the basic unit of execution within a process. Learn how to use threads in .NET and C# and create your first threading app.
  • Monitor And Lock In C#5/29/2019 8:08:53 AM. C# Lock and C# Monitor are two keywords used in thread synchronization in C#. Here are C# Lock and C# Monitor code examples.
  • C# Thread Basics3/30/2019 9:56:34 AM. Learn the basics of C# Thread. This code example explains how to create a Thread in C# and .NET Core.
  • Introduction To Multithreading In C#3/25/2019 5:41:57 AM. This article is a complete introduction to Multithreading in C#. This tutorial explains what a thread in C# is and how C# threading works.
  • Programming Concurrency In C++ - Part Two3/7/2019 9:41:26 AM. This article is in continuation of my previous article, "Programming Concurrency in C++: Part One". This article will sum up the introduction of concurrency in C++.
  • Multithreading With .NET2/18/2019 9:11:25 PM. Multithreading allows a program to run multiple threads concurrently. This article explains how multithreading works in .NET. This article covers the entire range of threading areas from thread creati
  • Passing Data To A Thread In C# and .NET1/15/2019 10:46:03 PM. How to pass data to a thread in C#. In this article, I will demonstrate how to use the ThreadStart to pass data from your main program to a new thread using the ParameterizedThreadStart.
  • Thread Pool In .NET Core And C# 1/8/2019 10:49:24 PM. A thread pool is a pool of worker threads that is available on demand as needed. The code examples in this article show how to use the thread pool in .NET Core using C#.
  • Programming Concurrency In C++ - Part One12/17/2018 9:33:13 AM. This article will help you get started with concurrency and will also introduce you to the features C++ offers in order to support concurrent programming. In this series of articles, I will not only
  • Threading with Mutex11/26/2018 2:57:35 AM. A mutual exclusion (“Mutex”) is a mechanism that acts as a flag to prevent two threads from performing one or more actions simultaneously.
  • Using the BackgroundWorker component9/17/2018 5:54:03 AM. This article discusses the BackgroundWorker component in .NET 2.0, it will show you how to use it to execute tasks in the background of your application. BackgroundWorker
  • A Potentially Helpful C# Threading Manual9/17/2018 5:20:43 AM. The article will focus on threading constructs and as such, is meant for both the beginner and those who practice multithreading regularly.
  • Multithreading in C#9/17/2018 4:26:09 AM. This article discusses how to write multithreading applications in C#. Part I of this series will discuss the basics of threads in .NET.
  • Background worker simplified9/17/2018 4:13:47 AM. This article looks at the Background Worker Technology and encapsulates it into a simple form that can be used over and over to run your background tasks.
  • Understanding Threading in .NET Framework9/17/2018 1:16:54 AM. This article describes how to use threading model in .NET Framework including creating, joining, suspending, killing, and interlocking threads. Create thread in C#, Join thread in C#, Suspend thread i
  • Multithreading Process With Real-Time Updates In ASP.NET Core Web Application8/6/2018 6:21:37 AM. In today's article, we will see how to implement multithreading with real-time updates shown in ASP.NET Core 2.0 web application.
  • Write First Threading App In C#7/16/2018 10:16:03 PM. This is hello world of threading.
  • How To Return A Pair Of Closest Birthdates Using API, Multi Threading And MVC 5 Using C#.NET10/18/2017 9:13:40 AM. This article demonstrates how to use multi-threading to return the name of 2 customers who have the closest birthdate. I also include how create API to add\ retrieve customer details from SQL database
  • Multithreading In C# .Net7/16/2017 12:43:47 PM. If you have a program that execute from top to bottom, it will not be responsive and feasible to build complex applications. So .Net Framework offers some classes to create complex applications.
  • Multi Threading With Windows Forms1/10/2017 9:59:42 AM. Some quick code for updating a Windows form application user interface.
  • Introduction to JDBC8/2/2016 3:01:27 AM. In this video we will Understanding Introduction to JDBC.Java Database Connectivity (JDBC) is an application programming interface (API) for the programming language Java, which defines how a client m
  • Understanding Multithreading And Multitasking In C#6/29/2016 4:30:31 PM. In this article, you will understand multithreading and multitasking In C#.
  • Threading Simplified: Synchronization Context - Part 146/7/2016 4:51:24 AM. This article explains what Synchronization Context is and how to use it efficiently in a multi-threading environment.
  • Threading Simplified: Semaphore - Part Thirteen5/10/2016 10:42:54 AM. This article explains what Semaphore is and how to use it efficiently in multithreading environment.
  • Threading Simplified: Part Twelve (Mutex)4/21/2016 11:43:34 AM. This article explains what Mutex is and how to use it efficiently in multithreading environment.
  • Threading Simplified: Part Eleven (Thread Atomicity & Deadlock)4/11/2016 10:50:08 AM. This article explains what Thread Atomicity and Deadlock are and how to use and handle them efficiently in multithreading environment.
  • Thread Safe Concurrent Collection in C#4/8/2016 11:32:47 AM. In this article you will learn about thread safe concurrent collection in C#.
  • Threading Simplified: Part 10 (Monitor)3/14/2016 9:16:02 AM. This article explains what Monitor is and how to use it efficiently in a multithreading environment.
  • Threading Simplified: Part 9 (Thread Locking)3/12/2016 11:20:14 PM. This article explains what Thread Locking is and how to use it efficiently in a multithreading environment.
  • Control Current Tasks In Multithreading2/20/2016 1:04:56 AM. This article is intended to explain the concept of controlling Task using different name.
  • Task Parallelism In Multithreading2/17/2016 9:06:28 AM. In this article you will lean about Task Parallelism in Multithreading.
  • Threading Simplified: Part 8 (Synchronization Basics and Thread Blocking)1/26/2016 9:55:37 AM. This article explains what Thread Synchronization Fundamentals are and how to use Thread Blocking efficiently in multithreading environment.
  • Invoke Method To Update UI From Secondary Threads In VB.NET1/25/2016 9:39:49 AM. In this brief article, we'll see how it can be possible, through the Invoke method, which is available to all controls through the System.Windows.Form namespace, to realize such functionality in order to execute a graphic refresh and update through delegates.
  • Multi-threading And Asynchronous Concepts1/15/2016 9:55:07 AM. In this article you will learn about multi-threading and asynchronous concepts.
  • Threading Simplified: Part 7 (Thread Priority)1/15/2016 2:05:02 AM. This article explains what Thread Priority is and how to use it efficiently in a multi-threading environment.
  • Threading Simplified - Part 2 (Multithreading Concepts)12/28/2015 6:41:39 AM. This article explains various concepts, such as Multiprogramming, Multitasking, Multiprocessing and Multithreading.
  • Threading Simplified - Part 3 (Threads type)12/28/2015 6:41:20 AM. This article explains various concepts, such as multiprogramming, multitasking, multiprocessing and multithreading.
  • Threading Simplified: Part 4 (Threads Creation)12/28/2015 6:40:58 AM. This article provides various ways to create threads and explains related concepts.
  • Threading Simplified: Part 6 (Exception Handling)12/28/2015 6:26:46 AM. This article explains the issues with exception handling in multi-threaded environment and how to address them.
  • Threading Simplified: Part 1 (Threads Inception)12/28/2015 2:55:00 AM. This article is a first part of the article planned to cover the threading in .NET.
  • Threading Simplified: Part 5 (Thread Pools)12/7/2015 2:33:20 AM. This article explains what thread pools are and how to use them efficiently in multithreading using QueueUserWorkItem method and Asynchronous delegates.
  • Asynchronous Programming Using Delegates11/4/2015 12:24:40 AM. This article is intended to explain the concept of asynchronous programming using DelegateS.
  • Threading Overview In C# 9/10/2015 5:25:53 AM. In this article we will learn about threading overview in c#. Thread is a small set of executable instructions and this set of instructions can be used to isolate a task from a process
  • Thread Safety in C#8/19/2015 8:05:39 PM. In this article you will learn about thread safety in C#. In multithreading programming, the word “thread-safety” is often used. Thread-Safety is relevant when resources are shared between threads.
  • Introduction to Multithreading Part 26/21/2015 6:18:36 PM. This article explains the various synchronization primitives used in a multithreaded application.
  • Introduction to Multithreading: Part 16/17/2015 1:23:11 PM. In this article you will learn the basics of Multithreading. It makes use of CPU core which helps in optimizing the performance of any application.
  • Introduction to Python5/30/2015 12:44:51 AM. This article is a small introduction to the Python language, which is easy to learn and easy to understand. Python is an interactive, interpreted, and object oriented language.
  • What Rental Threading Is5/20/2015 2:00:44 AM. Understand what rental threading is and how it is useful in browsers.
  • How to Debug Multithreaded Programs in C#4/24/2015 12:54:55 AM. This article is mainly focused on the process of multithread debugging.
  • NetNamedPiping and Threading in WCF4/5/2015 2:43:36 PM. In this article we learn about the NetNamedPiping and Threading in WCF.
  • Random Numbers in Multithreading2/12/2015 8:56:14 PM. In this article you will learn about random numbers in multithreading.
  • Asynchronous and Parallel Programming2/12/2015 12:47:08 AM. This article provides a basic understanding of the two hot topics, asynchronous programming and parallel programming irrespective of the programming language.
  • Multithreading in Detail2/11/2015 1:23:02 AM. This article explains about the different types of Multithreading.
  • Threading Step by Step, Resume, Suspend, Abort11/28/2014 10:40:30 PM. In this article we learn what a thread is and why we need them.
  • Multithreading in C#3/28/2014 1:18:17 AM. In this article we will learn how to create threads in C#, start and stop them and define their priorities.
  • Multithreading in C#2/13/2014 2:47:53 PM. Multithreading is a feature provided by the operating system that enables your application to have more than one execution path at the same time.
  • Monitor For Thread Locking Using ReaderWriterLocking2/1/2014 12:37:36 PM. This article explains use of a Monitor for thread locking using ReaderWriterLocking.
  • C# Corner Delhi Chapter Meet Official Recap: 18 Jan, 20141/28/2014 4:08:17 AM. The C# Corner Delhi Chapter organized its monthly event "C# Corner Delhi Chapter Meet" at MCN Solutions Pvt. Ltd. NOIDA, India on 18Jan, 2014. The event was named as: " Learn MVC, Multi Threading, Unit Testing and WCF "
  • The C# Asynchronous Programming Model11/17/2013 12:42:13 PM. This article will start by examining how to use the Asynchronous Programming Model (APM) to perform an asynchronous compute-bound operation, then describe the three styles of programming with the APM to deal with handling the end of the call in an asynchronous call: wait-until done, polling, and callback. The natural following is then the Thread Pool.
  • Improve Performance of .NET Application10/22/2013 8:04:11 PM. This article provides some concepts for improving the performance of .NET applications.
  • Synchronous Threading7/5/2013 12:00:11 AM. Well this article is basically to explain how to make threads run synchronously.
  • Thread Pooling in C#12/12/2012 12:05:55 PM. Thread pooling is the process of creating a collection of threads during the initialization of a multithreaded application.
  • Syncronization in Multithreading in VB.NET11/10/2012 2:45:17 AM. This article explains about the Synchronization in Multithreading. Threads are a powerful abstraction for allowing parallelized operations: graphical updates can happen while another thread is performing computations, two threads can handle two simultaneous network requests from a single process, and the list goes on.
  • Use Thread Local Storage to pass Thread Specific Data in VB.NET11/10/2012 2:35:02 AM. In an ideal world developers typically create instance variables and access these via interfaces to hold thread specific data. The .NET framework provides a mechanism to store data at a thread level and allows you to access this thread specific data anywhere this thread exists.
  • Synchronization in Multi-threaded Applications in VB.NET11/10/2012 1:58:41 AM. This article demonstrates the important concept in multithreading, synchronization. In this article and attached source code, you will learn how to write multi-threaded synchronized applications.
  • Client Server Multithreading Application in VB.NET11/10/2012 12:39:58 AM. This is simple Client/Server (multi-threading) program that transfers data. Server can handle multiple clients.
  • Apply Impersonation to Threading Using Visual Basic11/9/2012 10:56:24 AM. This article addresses a simple approach to applying impersonation to threading; by default when impersonation is applied, it does not extend to threads spawned after impersonation is set.
  • C# or VB.NET: World War III11/9/2012 9:47:47 AM. I know many .NET developers have this question in their mind. Which language do I use to develop .NET applications?
  • Multithreading in VB.NET11/8/2012 8:56:47 AM. Multithreading is new to VB developer, VB developer always wanted this feature in the language and its there in VB .NET.
  • Multithreading with C#10/20/2012 3:04:10 AM. This article gives you an introduction to write multithreaded applications with c# and some basic ways for creating threads
  • Synchronization in Multi-threading10/13/2012 5:50:17 AM. This article with sample code shows synchronization concepts of multithreading ..
  • Multithreading Made Easy in .NET 2.010/4/2012 7:28:20 AM. This article demonstrates a very easy alternative to normal multithreaded programming in .NET. A freely available library called CSP.NET is presented and a sample application shown.
  • Dots Game10/3/2012 11:06:25 AM. Here is a dots game developed using C# and GDI+. New version of the game will be coming soon.
  • J2EE and Microsoft .NET for Enterprise Applications9/30/2012 4:22:49 AM. The purpose of this article is to provide an introduction to and overview of both J2EE and Microsoft .NET and compare the both side by side.
  • WinChat For .NET9/30/2012 2:48:50 AM. WinChat For .NET is a simple peer-to-peer chatting program that functions very similarly to the WinChat program provided by Windows 2000. It provides all the functionalities that the original WinChat program provides.
  • Functional Programming with C#: Advanced Asynchronous Programming9/29/2012 8:49:24 AM. I wrote about functional asynchronous programming in an earlier article and now will expand on the topic to look at ways to re-synchronize results from asynchronous function calls.
  • Multithreading in WPF Part I9/29/2012 7:42:08 AM. Multithreading means executing more than one code block at a time .
  • Multithreading in WPF: Part II9/29/2012 6:23:43 AM. In this article we will consider the safest approach to run background task in WPF.
  • ASP.NET Performance Practices9/3/2012 7:26:34 PM. In this article we will explore some tips for improving ASP.NET performance.
  • ReaderWriterLockSlim Class in C# Threading6/22/2012 12:55:33 AM. ReaderWriterLockSlim is used to protect a resource that is read by multiple threads and written to by one thread at a time.
  • Application Scheduler Service Using C#.Net And XML5/20/2012 7:41:27 AM. This is an application scheduler that is implemented as a Windows Service, similar to the Windows Task Scheduler - but simple, as it has fewer configuration options and it uses XML to store and retrieve data.
  • C# Pager5/19/2012 6:54:18 AM. C# Pager is a simple client/server application that implements functions of a pager.
  • Multi Threaded File Reader and Generator5/19/2012 4:13:53 AM. The attached source code with this article is a multithreaded application written using .NET 2.0 that shows how to use the background worker threads to read a text file, generate reports and show report progress and completed events.
  • How to: Use FileSystemWatcher to listen to local drives5/19/2012 12:46:08 AM. In this article we will see how to listen to your files system and report of any changes happening to your local drives.
  • Download File Using Multithreading in Windows Forms5/15/2012 3:15:38 PM. This article explains how to download's file using multi threading.
  • How do I use ThreadPool in C# and .NET?5/13/2012 8:14:25 AM. In this brief articles, I will show you how to use thread pool in C# and .NET.
  • Parallel Programming Using New TPL Library in .Net 4.05/13/2012 2:56:53 AM. With the .Net 4.0, you are provided with the brand new parallel programming language library called “Task Parallel Library” (TPL). Using the classes in the System.Threading.Tasks namespace, you can build fine grained, scalable parallel code without having to work directly with threads.
  • Asynchronous Processing of Database Records on a WinForm UI Using Multithreading3/10/2012 1:45:46 PM. In this article you will learn how to asynchronously load data from a SQL Server database table into a Windows Forms form.
  • Interlocked Class in c# Threading3/7/2012 9:46:14 AM. The methods of this class help protect against errors that can occur when the scheduler switches contexts while a thread is updating a variable that can be accessed by other threads, or when two threads are executing concurrently on separate processors.
  • ReaderWriterLock Class in C# Threading1/13/2012 12:44:55 AM. 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#1/12/2012 5:45:22 PM. 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-Safe Calls Using Windows Form Controls in C#1/4/2012 3:43:14 PM. Here you will see how to make thread-safe calls using Windows Form Controls.
  • Volatile keyword in C# Threading12/27/2011 2:15:30 AM. The volatile keyword is a convenience keyword for those who need to access member variables of a class or structure in multithreaded conditions.
  • Timer class in Threading12/26/2011 1:06:20 PM. The Timer class provides a way to execute methods at specified intervals and it cannot be inherited.
Source Code: Graphics Programming with GDI+
Graphics Programming with GDI+ is the .NET developer's guide to writing graphics appl...
Download