Search - Articles
DevASP.NET for ASP.NET, VB.NET, XML and C# (C-Sharp) Developers Tuesday, March 03, 2009
Dev Articles
Search Directory
ASP.NET
VB.Net
C-Sharp
SQL Server
 

FREE 12 month online training for ASP.NET & MS Expression Studio and a Free copy of MS Expression Web with Windows Server Purchase

Home >Search > Articles & Samples > C-Sharp > Threading


Search:
What's New - What's Hot
Use Threads and Build Asynchronous Handlers in Your Server-Side Web Code     
Total Hits: 47  |  Today: 0Author: Fritz Onion      Rating:  
Read Reviews | Write Review |  Your Rating: 

Fortunately for developers, threading in ASP.NET is a lot easier than it was in ASP. In this article, the author takes a look at threading in the ASP.NET HTTP pipeline, and explains how threads are managed efficiently without the involvement of the developer. The article considers how the common language runtime threadpool is used by ASP.NET to service requests, looks at the pooling mechanisms used for handlers, modules, and applications, and covers both IIS 5.0 and IIS 6.0 and how they differ i...

Custom LoadGenerator Tool Identifies the Issues Your Application Faces Under Stress     
Total Hits: 92  |  Today: 0Author: Brian Otto      Rating:  
Read Reviews | Write Review |  Your Rating: 

In order to create a reliable application you must understand how various components will perform under heavy loads and ensure that the system behaves appropriately. Server components for popular Web sites need to respond to millions of requests per day. Corporate intranets and desktop applications may only need to handle a few hundred or a few thousand requests per day. Many smaller development organizations feel they don't have the time or money to devote resources to building out environments...

Multi-Threading in a Java* Environment     
Total Hits: 117  |  Today: 0Author: Allan McNaughton      Rating:  
Read Reviews | Write Review |  Your Rating: 

Building programs around threads of execution — that is, around specific sequences of instructions — delivers significant performance benefits. Consider, for example, a program that reads large amounts of data from disk and processes that data before writing it to the screen (such as a DVD player). On a traditional, single-threaded program (the kind most client programs use today), where only one task executes at a time, each of these activities happens as a part of a sequence of distinct phases...

Calling Your Main Thread from a Worker Thread in C#     
Total Hits: 199  |  Today: 0Author: Abstractvb.com      Rating:  
Read Reviews | Write Review |  Your Rating: 

There are many cases where it is necessary to let your main application know that a thread has completed. Your main application could spawn some threads to do background work and then when the threads have completed their work they could return the results back to the main application. This would be beneficial since it would leave the main thread free and ready to respond to the user.We will create a new application that will spawn two thread that will each modify a label on a form, when the cla...

MULTITHREADING IN C#     
Total Hits: 146  |  Today: 0Author: Arun Ganesh      Rating:  
Read Reviews | Write Review |  Your Rating: 

Multithreaded applications provide the illusion that numerous activities are happening at more or less the same time.
In C# the System. Threading namespace provides a number of types that enable multithreaded programming.
Threading in C#
System.Threading Namespace
The System.Threading Namespace provides a number of types that enable multi-threading programming. In addition to providing types that represent a particular thread, this namespace also describe types that can handle a coll...

Use P/Invoke to Develop a .NET Base Class Library for Serial Device Communications     
Total Hits: 273  |  Today: 0Author: John Hind      Rating:  
Read Reviews | Write Review |  Your Rating: 

Out-of-the-box, the only way of coding RS232 serial communications applications in the .NET environment is to import the outdated and somewhat limited MSComm ActiveX control. This article describes the development of a lean, multithreaded, and modern RS232 base class library in C# managed code. The library uses Platform Invocation Services to interact with the Win32 API directly. Application programmers can use the library from any .NET language through inheritance; the article explores examples...

A C# class to invoke almost any method from a worker thread     
Total Hits: 272  |  Today: 0Author: Xiangyang Liu      Rating:  
Read Reviews | Write Review |  Your Rating: 

This article was posted last week under a different title. I deleted it later because the code does not really make multithreading easier, it requires you to derive a class from my base class and then override a virtual method. The current version is much simpler. I hope you find it useful, too. When programming with C/C++, you can create a new thread using the Win32 API CreateThread. This API allows you to pass the address of a function and a pointer as its parameter. The function will be execu...

ThreadManager     
Total Hits: 268  |  Today: 0Author: balazs_hideghety      Rating:  
Read Reviews | Write Review |  Your Rating: 

.NET is a powerful tool, that can be used by applications that demand high scalability. Without using the Threading namespace, I doubt we can unleash the power of the .NET platform. Depending on the application you write, in most cases ThreadPool should be enough to perform small task asynchronously (in a separated thread). ThreadPool provides no access to the underlying threads, so we have no control over the thread and there’s no way to stop a thread once it has been started. If there’s a need...

Using the ADO.NET DataSet for Multitiered Apps     
Total Hits: 71  |  Today: 0Author: Johnny Papa      Rating:  
Read Reviews | Write Review |  Your Rating: 

The vast majority of applications built today in-volve data manipulation in some way—whether it be retrieval, storage, change, translation, verification, or transportation. For an application to be scalable and allow other apps to interact with it, the app will need a common mechanism to pass the data around. Ideally, the vehicle that transports the data should contain the base data, any related data and metadata, and should be able to track changes to the data. Here's where the ADO.NET DataSet ...

Multithreading in .NET Applications     
Total Hits: 223  |  Today: 0Author: CodeGuru      Rating:  
Read Reviews | Write Review |  Your Rating: 

Multithreading is a powerful tool for creating high performance applications, especially those that require user interaction. Microsoft .NET has broken down the barriers that once existed in creating multithreaded applications. In this article we'll explore multithreading with the .NET Framework and some of the things it can provideand also cover the background on threading along with an example of how multiple threads can be used to improve an application's user interface...

C# Asynchronous Multi-Threaded Active Directory User/Group Browser  Version: 0.00     Price: $0.00  
Total Hits: 1  |  Today: 0Author: Matthew Cochran      Rating:  
Read Reviews | Write Review |  Your Rating: 

I was working on a win forms project that queries Active Directory information for user and group information and thought the approach may be of interest to some c-sharpcorner readers as a simple example of a asynchronous multi-threaded win forms application....

Functional Programming with C#: Advanced Asynchronous Programming  Version: 0.00     Price: $0.00  
Total Hits: 0  |  Today: 0Author: Matthew Cochran      Rating:  
Read Reviews | Write Review |  Your Rating: 

Before we get started, I just have to say that I've been very impressed with what is achievable with a few simple and reusable extension methods in the 3.5 Framework and I would bet that this is just the tip of the iceberg of what we'll see coming out in the next few years using these features....

Using PLINQ to Improve Learning Algorithms  Version: 0.00     Price: $0.00  
Total Hits: 0  |  Today: 0Author: Mike Gold      Rating:  
Read Reviews | Write Review |  Your Rating: 

I recently just finished reading an article by Igor Ostrovsky in MSDN magazine titled Data-Parallel Patterns and PLINQ. The Parallel Linq library is an exciting addition to Visual Studio 2010, making multi-threaded programming less painful, especially when operating over a list of items in parallel. After reading the article I decided to try the technology out on one of my old articles Using a Genetic Algorithm to do Consultant Scheduling in C#....

Dealing with controls within a multi threaded context  Version: 0.00     Price: $0.00  
Total Hits: 1  |  Today: 0Author: Bechir Bejaoui      Rating:  
Read Reviews | Write Review |  Your Rating: 

Many people don't pay attention to the fact that controls couldn't be directly invoked within a thread context other than the one within which they have been created. And then their applications fall down because a run time error will be raised when firing the application. It is technically called none valid cross thread operation. It generates an InvalidOperationException....

Bad Practices: Locking on Non-shared Objects in Multi-threaded Applications  Version: 0.00     Price: $0.00  
Total Hits: 0  |  Today: 0Author: Mohammad Elsheimy      Rating:  
Read Reviews | Write Review |  Your Rating: 

In this article we will see one of the bad practices developers always do....

Generic Thread Start  Version: 0.00     Price: $0.00  
Total Hits: 0  |  Today: 0Author: DaveyM69      Rating:  
Read Reviews | Write Review |  Your Rating: 

Yesterday, I had the need for a generic method to be called by a ParameterizedThreadStart delegate. This delegate (and the method to be invoked of course) take an object rather than T.

This is a quick and dirty wrapper around the Thread class and a generic version of the delegate to enable the use of generics....

Threading with the Thread Pool and BackgroundWorker  Version: 0.00     Price: $0.00  
Total Hits: 0  |  Today: 0Author: Alphakoda      Rating:  
Read Reviews | Write Review |  Your Rating: 

Today I want to talk about threads since every programmer works with them and absolutely loves them. Typically, when we create a thread, your code can look like this:...

Scalable Multithreaded Programming with Tasks  Version: 0.00     Price: $0.00  
Total Hits: 1  |  Today: 0Author: Ron Fosner      Rating:  
Read Reviews | Write Review |  Your Rating: 

PCs are evolving away from faster and faster processors and toward more and more cores. That means increases in latent processing power are available at relatively low cost. But it also means programming these systems to take advantage of that latent processing power is more challenging. To use all of those multiple processors, you need to delve into the world of parallel processing....

Spell Check, Hyphenation, and Thesaurus for .NET with C# and VB Samples - Part 2: Multi Threading  Version: 0.00     Price: $0.00  
Total Hits: 4  |  Today: 0Author: Thomas Maierhofer      Rating:  
Read Reviews | Write Review |  Your Rating: 

In the first part of this article (Spell Check, Hyphenation, and Thesaurus for .NET with C# and VB Samples - Part 1: Single Threading), the usage of NHunspell in single threaded applications was explained. With locking mechanisms, this technique can be used in multi-threading applications like web servers, ASP.NET WCF services, and so on. But, NHunspell provides an optimized class for these use cases called SpellEngine for high throughput spell checking services....

Spell Check, Hyphenation, and Thesaurus for .NET with C# and VB Samples - Part 1: Single Threading  Version: 0.00     Price: $0.00  
Total Hits: 2  |  Today: 0Author: Thomas Maierhofer      Rating:  
Read Reviews | Write Review |  Your Rating: 

Spell checking, hyphenation, and synonym lookup via thesaurus are the Open Office spell checker Hunspell functions. The NHunspell project makes these functions available for .NET applications. As the Open Office spell checker Hunspell is used in a vast amount of Open Source applications, it could also be the first choice for .NET applications. Beyond Open Office, Hunspell is currently used in the Mozilla applications Firefox and Thunderbird, the browsers Google Chrome and Opera, and last but not...


1  2  3  4  5  6  7  8  9  10  Next >> 


Disclaimer - Privacy
© 2002-2012 DevASP.net