C# Corner

Related resources for Threads
  • How To Create A Thread In Java9/19/2019 6:47:46 AM. In this article we discuss how to create a thread in Java and also discuss Multi-threading and Multi-tasking in Java.
  • How To Provide Joining And Naming To Threads In Java9/19/2019 6:35:58 AM. In this article we discuss Joining and Naming of Thread in Java.
  • Working With Threads in Java9/12/2019 5:43:32 AM. In this article you will learn how to set the priority of a thread and use the og join(), isAlive() methods in Java
  • Perform Single And Multiple Task Using Multiple-Thread In Java7/25/2019 1:21:22 AM. This article explains how to perform a single and multiple tasks using multiple threads.
  • 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.
  • 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.
  • 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.
  • 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
  • Creating Simple Thread In C#3/26/2018 1:04:10 AM. This video shows creating and running threads in C-Sharp. It also explains the use of Thread.Join().
  • Look At Threads Window In VS 20151/13/2017 2:22:03 AM. In this article, we will look into one of the feature of VS 2015 known as Threads Window.
  • Overview Of ThreadStatic Attribute In C#7/23/2016 1:38:53 AM. In this article, you will learn about the overview of ThreadStatic attribute in C#.
  • 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 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.
  • Different Ways To Create Task Parallel Library (TPL Threads)10/12/2015 3:01:58 AM. This article explains the concept to create thread using TPL (Task Parallel Library) with different approaches.
  • 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.
  • What is the Difference Between a Process and a Thread3/14/2015 1:33:58 PM. In this article we will learn about common queries of threads and processes.
  • Threads in WPF11/28/2014 4:00:55 AM. This article can help you to understand the proper usages of threading in WPF.
  • How Threads and Foreground & Background Threads Work in C# .NET8/1/2014 1:52:09 AM. In this article we’ll create threads and run those threads in parallel and we’ll also see how foreground and background threads work.
  • 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.
  • Memory Management in .NET8/23/2013 12:42:24 PM. This tutorial describes Memory Management in .NET.
  • Messaging Between Threads using Message Loop in VB.NET11/10/2012 1:53:49 AM. MessageLoopLib is a stripped down version of a complete, threading communication subsystem I’ve written. This implementation is a single thread created in the GUI constructor. I’ve dropped all thread management and have had to change some of the message code to accommodate this.
  • 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
  • Concurrency Control in ADO.NET using Threads and Monitors10/20/2012 3:03:46 AM. The concurrency controls system refers to the lowest level in architecture of a DBMS. It is relative to the input/output operations, which carry out the transfer of blocks from the secondary memory to the main memory and vice versa.
  • Creating WPF window's on dedicated threads9/29/2012 9:36:53 AM. This article gives an insight to creating WPF windows in dedicated threads
  • Accessing Windows Forms Controls Across Threads5/15/2012 4:38:36 PM. Many articles exist on the web regarding properly handling multiple application threads and accessing data across those threads, but this article will aim to remove much of the ambiguity or inacurate information found in many other articles.
  • Threads and Collections in C#12/18/2011 11:33:00 PM. The Collection classes in the System.Collections namespace are not threadsafe and their behavior is “undefined” when collisions occur. This program illustrates the issue.
  • Naming, passing data and capturing variables in Thread11/27/2011 10:44:52 PM. We know that every thread has a name property that you can set for the benefit of debugging. Thread’s name is displayed in the threads window and debug location toolbar.
  • Synchronizing Threads in a Multithreaded Application in .Net - C#7/26/2011 10:39:12 PM. Here you will see synchronization of threads in a multithreaded application in .Net.
  • Live Threads – .NET Threading and Events10/30/2010 1:01:49 AM. Many times the Application needs to be notified about what is happening inside a Thread. For this, Events can be used with Threads. This is what I call 'Live Threads'.
  • Loading XML File in a TreeView Control using Multithreading1/31/2007 1:47:41 AM. There are many occasions when programmers need to develop multithreading applications, which can load big files in the background and let the user do data entry or other jobs without any interruption. In this article, I'll show you how to create multiple threads to load multiple files.
  • Thread Synchronization using VS.NET 20051/30/2007 3:23:44 AM. When two or more threads need access to a shared resource, they need some way to ensure that the resource will be used by only one thread at a time. The process by which this is achieved is called synchronization.
  • Sorting using Multithreading8/29/2006 11:17:30 AM. This is simple multithreading application that sort integers values in an array.
  • Client Server Multithreaded Application8/29/2006 11:13:14 AM. This is simple Client/Server (multi-threading) program that transfers data. Server can handle multiple clients.
  • Making UI more responsive using Threading8/29/2006 11:06:46 AM. This example shows how threads can help us to make User interface more responsive when we have some background jobs.
  • .NET Performance Counters, Part 1: Predefined CLR Performance Counters2/16/2006 1:43:04 AM. In this article, I will describe what a performance counter is and introduce you to the predefined counters that you can use to monitor the state of the CLR while your applications run.
  • Boxing and Unboxing of Value Types : What You Need to Know?2/7/2006 6:09:14 AM. Programmers new to C# can encounter less than ideal performance and even unexpected results due to boxing and unboxing of value types.
  • Use Thread Local Storage to Pass Thread Specific Data1/31/2006 5:15:09 AM. The specific thread level storage is known as thread local storage or TLS for short. The .NET threading namespace allows .NET developers to use TLS from within their multi-threaded applications to store data that is unique to each thread.
  • Multi-threaded Web Applications - Case I: Search Engine1/31/2006 4:24:41 AM. This article is the first of the series of 4. I will demonstrate the use of threading in web applications by implementing a simply search engine. The following 3 articles in the series will be a Port Scanner, a Reverse DNS and a Web Hammer respectively.
  • Using .NET Framework Multithreading and GDI+ to Enrich the user experience1/30/2006 11:56:19 PM. This tutorial shows you how to create, send, and received messages using MSMQ from the .NET base class library (System.Messaging) and C#.
  • Messaging between Threads using Message Loop1/30/2006 11:48:06 PM. MessageLoopLib is a stripped down version of a complete, threading communication subsystem Ive written. This implementation is a single thread created in the GUI constructor. Ive dropped all thread management and have had to change some of the message code to accommodate this.
  • Synchronization in Parallel threads1/28/2006 7:03:10 AM. The Threads makes us able to run multitasks at a time. In fact Computers (John von Neumann Architecture) don't execute the tasks parallel .The OS gives threads permission (depend on thread priority) to work on CPU. The sufficient degree of parallelism keeps the CPU busy and it is efficient.
  • Multithreading Part 2: Understanding the System.Threading.Thread Class1/28/2006 5:15:37 AM. In this article we will study the .NET threading API, how to create threads in C#, start and stop them, define their priorities and states.
  • Lengthy Operations on Single Thread in .NET Applications1/28/2006 1:18:44 AM. In this article I discuss how the lenghty operations can be handled in a .NET application. I also discuss how the stack trace can be examined to find any specific methods.
  • Recipe to Implement Threads Quick n Easy in C#1/28/2006 12:36:52 AM. In this tutorial type article, author shows how to write threading applications quick and easy in C#.
  • Consumer/Producer Multithreaded Program1/28/2006 12:21:10 AM. This is simple multi-threading program that adds and removes elements in an ArrayList. Producer button will creates a producer thread that adds elements in to the ArrayList. The maximum number of elements can be added to this ArrayList are 100 elements and the producer thread has to wait until the consumer thread/threads (creates by pressing consumer button) removes elements from the ArrayList. Then Producer thread starts to add more elements to the ArrayList.
  • Basic concepts of Threading: Part I1/27/2006 8:26:12 AM. In this article, we will look at the basic concepts of threading in C# and .NET.
  • Interlocking Threads1/27/2006 6:14:04 AM. Recently, I was building multi-threaded applications and noticed some intermittent data inconsistency. Soon, I found the culprit was locking mechanism. After doing some research, I gathered the following information and as usual decide to share with you guys.
  • Handling the Queuing of Messages in a Multithreaded Program1/27/2006 5:52:54 AM. In the financial world you have to deal with messages being spewed at you in large quantities at a rapid rate. For example stock quotes, market data, and orders come flying at you through some sort of wire and you as a programmer have to handle them in a way that doesn’t overwhelm you or the machine.
  • Maze Solver 12/26/2005 12:15:44 AM. Solving mazes is one of those problems, at least with the algorithm I've chosen here.
  • Synchronized Threading in .NET12/7/2005 11:25:28 PM. 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. Since threads are pretty simple to understand, conceptually, but, practically, they are a cause for programmatic headaches, I decided to write this program to describe how to make use of threads.
  • Using the ThreadPool to Run Animated Gifs in C# and .NET12/7/2005 11:25:17 PM. In this article we will discuss the use of the ThreadPool class in conjunction with the ImageAnimator class to run 3 animated gifs in separate threads.
  • Changing the default limit of 25 threads of ThreadPool Class12/7/2005 11:15:06 PM. The Threadpool is useful for managing threads that are usually in a wait state and that take only a short amount of time to do their work. If still you would like to change the default limit of 25 threads then here you go.
C# Language Specification 5.0
This book provides a complete description of the C# language 5.0.
Download