Threading in C# and .NET

Welcome to Multithreading programming section of C# Corner. In this section, you will find various multithreading related source code samples, articles, tutorials, and tips. If you have some cool code, article, white paper, or tips related to Windows Forms and want to share with other peer developers, send it to webmaster@c-sharpcorner.com.
Source Code
Multithreaded XML Document for Read/Write Access by John Bailo. July 21, 2004.
This article describes a process for using a ThreadPool within a windows service that monitors other services. It also shows how to allow multithreaded read/write access to an XmlDocument, that acts as persistent storage, using a Mutex.
Performing Lengthy Operations on a Single Thread in .NET Applications by Wiktor Zvchla. July 08, 2004.
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.
Interlocking Threads by Mahesh Chand. Sep 10, 2003.
Sharing variables among multiple concurrent threads may lead to data inconsistency. To overcome data inconsistency, we usually apply locking mechanism on the shared variables. However, locking may not be the best way in some cases.
Changing the default limit of 25 threads of ThreadPool class  by Yash Malge. Jun 19, 2003.
The thread pool is created the first time you create an instance of the ThreadPool class. 
Use Thread Local Storage to Pass Thread Specific Data by Doug Doedens.  Mar 18, 2003.
In an ideal world developers typically create instance variables and access these via interfaces to hold thread specific data.
ChessyOnline Version 1.0  by Samesh Ahmad.  Dec 31, 2002.
The attached project is a chess game that can be played by two users online as well as on the network. 
Synchronized Threading in .NET by Ahmad Al-Kayali. Dec 11, 2002.
Threads are a powerful abstraction for allowing parallelized operations: graphical updates can happen while another thread 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 by Mike Gold. Nov 14, 2002.
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. 
Sorting using Multithreading by Indika M. W. Nov 13, 2002.
This is simple multithreading application that sort integers values in an array. 
Client Server Multuthreaded Application  by Indika M. W. Nov 08, 2002.
This is simple Client/Server (multi-threading) program that transfers data. Server can handle multiple clients. 
Consumer/Producer Multithreaded Application by Indika M. W. Nov 04, 2002.
This is consumer/producer multi-threading program written in C#. 
Drawing Shapes Using Threading by Indika M.W . Oct 25, 2002.
This is simple multi-threading program that draws circles and rectangles. 
Recipe to Implement Threads Quick n' Easy in C# by Erlend Larson. Aug 28, 2002.
In this tutorial type article, author shows how to write threading applications quick and easy in C#.
Loading XML Document in a TreeView Control by Manisha Mehta. Apr 29, 2002.
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.  
Multi-threading Web Applications: Part II - Port Scanner by Tin Lam. Mar 12, 2002.
In this article, I will demonstrate how you can apply the same technique to a web based port scanner.
Multi-threading Web Applications: Part I - Search Engine by Tin Lam. Mar 07, 2002.
Multi-threading is the ability for an application to perform more than one execution simultaneously. 
Messaging between threads using Message Looping by John Schofield. Aug 22, 2001.
MessageLoopLib is a stripped down version of a complete, threading communication subsystem I?ve written. 
Synchronization of Parallel Threads  by Paul Abraham. Jul 02, 2001.
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.
Synchronization in Multithreading by Hari Shanker. Feb 13, 2001.
This article with sample code shows synchronization concepts of multithreading ..
Making UI more responsive by using Threading by Hari Shanker. Feb 12, 2001.
See how threads can help us to make User interface more responsive when we have some background jobs.
Articles and Tutorials
Multithreading Part 4: The ThreadPool, Timer Class and Asynchronous Programming Discussed by Manish Mehta. Apr 16, 2002
If you were following my first three parts of this series, you probably are familiar with basics of threading
Multithreading Part 3: Thread Synchronization by Manish Mehta. Apr 11, 2002
Gradually, as you start picking up the threads of multi-threading, you would feel the need to manage shared
Multithreading Part 2: Understanding the Thread Class by Manish Mehta. Apr 08, 2002
In this article we will study the .NET threading API, how to create threads in C#, start and stop them
Multithreading Part 1: Multitasking and Multithreading by Manish Mehta. Apr 08, 2002
Gradually, as you start picking up the threads of multi-threading, you would feel the need to manage shared

'programming > c#' 카테고리의 다른 글

[펌] 바이트자르기  (0) 2004.10.01
[펌]Obtaining the HTML from a URL  (0) 2004.09.14
[펌]Using Application Configuration Files in .NET  (0) 2004.09.03

+ Recent posts