C# Help - C# Community and Information

Multi Threaded Calculations in C#

September 19th, 2007 in C# Language by admin

Introduction

This C# .NET test harness configures easilycomparing throughput results of multi-threaded and single threadedcalculations using ADO .NET datasets. This simple multi-threadedexample performs calculation and database updates three times fasterthan a single threaded approach. Read more…

Multithreading Made Easier in C#

July 15th, 2007 in C# Language by admin

*
*
* Multithreading Made Easier
* Created by Anand.
* Bihar,India
* User: Administrator
* Date: 4/3/2005
* Time: 2:36 PM
* See how easier its to create multithreaded
applications
* Like Java ( I have tried to imitate Java,s
Runnable and Thread )
* You have to do just 4 things :
* 1)Create a class which implements
AObject.Runnable
* 2)Create an object of above class
* 3)Create an object of AObject.Thread passing
it the reference of object in step 2
* 4) Class start() method of AObject.Thread
object
You must be thinking why I didnot try just extending System.
Threading.Thread Because Its a sealed class !!! In near future I will
be adding ThreadGroup Class to AObject Namespace and many more…
Try these codes…
mail me to and_and007in@yahoo.co.in
or anandindnr@yahoo.co.in
Enjoy !
*
* To change this template use Tools | Options |
Coding | Edit Standard Headers.
*/
using System;
using System.Drawing;
using System.Windows.Forms; Read more…

Conversion of Singlethreaded C# Class to Multithreaded One

April 5th, 2007 in C# Language by admin

Sample Image - AmThreader.png Read more…

Changing the C# Default Limit of 25 Threads of ThreadPool Class

February 28th, 2007 in C# Language by admin

Introduction

According to the Microsoft documentation., "The thread pool is created the first time you create an instance of the ThreadPool class. The thread pool has a default limit of 25 threads per available processor, which could be changed using CorSetMaxThreads as defined in the mscoree.h file." Read more…

.Net Threading, Part II

February 14th, 2007 in C# Language by admin

This is the second article of two partson dotNet threading. In this second part, I will discuss further thesynchronization objects in the System.Threading dotNet namespace, thread localstorage, COM interoperability and thread states. Read more…

Use C# Thread Local Storage To Pass Thread Specific Data

January 25th, 2007 in C# Language by admin

In an ideal world developers typically createinstance variables and access these via interfaces to hold threadspecific data. There are times however in a multithreaded applicationwhere this is not realistic due to a variety of factors includinginflexible interfaces, legacy code, and the original overall design ofthe application. The .NET framework provides a mechanism to store dataat a thread level and allows you to access this thread specific dataanywhere this thread exists. Read more…

Use Thread Local Storage To Pass Thread Specific Data

January 20th, 2007 in C# Language by admin

In an ideal world developers typicallycreate instance variables and access these via interfaces to holdthread specific data. There are times however in a multithreadedapplication where this is not realistic due to a variety of factorsincluding inflexible interfaces, legacy code, and the original overalldesign of the application. The .NET framework provides a mechanism tostore data at a thread level and allows you to access this threadspecific data anywhere this thread exists. Read more…

How To Thread in C#, Part I

January 16th, 2007 in C# Language by admin

One of my New Year wishes for this coming year was that the standard committees wouldagree on threading classes for the C++ language. This limitation of the C++ languagestandard means that I have to rewrite my threading library each time I start a new job witha new company. I've always wished there was a standard threading library that I could usewherever I go. Read more…

Multi-Threading with C#

December 21st, 2006 in C# Language by admin

By Rosen Kehayov

A small handout for beginners in multithreading in .NET environment Read more…

Example on Using Threads Which Are Synchronized

December 19th, 2006 in C# Language by admin

  • Sample Image - maximum width is 600 pixels Read more…