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 > ASP.NET 2.0 > Threading


Search:
What's New - What's Hot
A security neutral mutex class for the managed platform  Version: 0.00     Price: $0.00  
Total Hits: 6  |  Today: 0Author: Milton K Baby      Rating:  
Read Reviews | Write Review |  Your Rating: 

This article intends to introduce you to a new managed Mutex class, MutexSecurityNeutral. The existing .NET framework provided System.Threading.Mutex class has the limitation of using only one security context, the one under which it is created. Once it is created under a specific security context, it can?t be opened/created under a different user/security context. Here is a workaround for this problem - the MutexSecurityNeutral class....

The key to multi-threaded Windows Forms UI interaction  Version: 0.00     Price: $0.00  
Total Hits: 5  |  Today: 0Author: James T. Johnson      Rating:  
Read Reviews | Write Review |  Your Rating: 

I don't intend for this article to teach multi-threaded programming in .NET, I do want to point out some important things when dealing with multi-threaded programs in a Windows Forms environment. This article will be code light, however I have provided a full sample illustrating how to employ the practices required of a Multi-Threaded Windows Forms application....

Beginners Guide to Threading in .NET: Part 4 of n  Version: 0.00     Price: $0.00  
Total Hits: 3  |  Today: 0Author: Sacha Barber      Rating:  
Read Reviews | Write Review |  Your Rating: 

I'm afraid to say that I am just one of those people, that unless I am doing something, I am bored. So now that I finally feel I have learnt the basics of WPF, it is time to turn my attention to other matters....

Simplify Asynchronous Method Calls by Using a Base Class  Version: 0.00     Price: $0.00  
Total Hits: 4  |  Today: 0Author: aef123      Rating:  
Read Reviews | Write Review |  Your Rating: 

Whenever you have a long running process, it's usually a good idea to have it process in a background thread. This keeps your application responsive. If it's a piece of code that is only being called from a few spots, the BackgroundWorkeris often the best solution. If it's a class library that will be called from lots of different applications, I prefer to encapsulate the threading within the class....

Throttling Concurrency in the CLR 4.0 ThreadPool  Version: 0.00     Price: $0.00  
Total Hits: 5  |  Today: 0Author: Erika Fuentes      Rating:  
Read Reviews | Write Review |  Your Rating: 

The CLR ThreadPool in the latest release (CLR 4.0) has seen several major changes since CLR 2.0. The recent shift in technology trends, such as the widespread use of manycore architectures and the resulting desire to parallelize existing applications or write new parallel code, has been one of the biggest motivating factors in the improvement of the CLR ThreadPool....

How to get CPU usage of processes and threads  Version: 0.00     Price: $0.00  
Total Hits: 5  |  Today: 0Author: Gil.Schmidt      Rating:  
Read Reviews | Write Review |  Your Rating: 

The CPU usage is often recognized from Windows Task Manager. I will explain in this article the most efficient way I could find to calculate it for both processes and threads....

An easy to use worker thread  Version: 0.00     Price: $0.00  
Total Hits: 4  |  Today: 0Author: Frank Melber      Rating:  
Read Reviews | Write Review |  Your Rating: 

I had the need for a worker thread which is easy to use and is independent of libraries like MFC. So I wrote a class called CWorkerThread which fits my needs. It provides functionality to execute an unlimited amount of functions in a single thread. The functions are processed syncronously in the order the events which are related to these functions are fired....

When a thread will terminate or dispose?  Version: 0.00     Price: $0.00  
Total Hits: 5  |  Today: 0Author: smiling4ever      Rating:  
Read Reviews | Write Review |  Your Rating: 

The purpose of this article is to discuss and to explain the ways in which threading will go out of scope, in other words, thread death. This article does not teach or guide you on how to use or write threads. (See background.)...

Synchronizing Multiple Threads in the ThreadPool  Version: 0.00     Price: $0.00  
Total Hits: 5  |  Today: 0Author: Manassypov      Rating:  
Read Reviews | Write Review |  Your Rating: 

This snippet demonstrates one way of synchronizing multiple user worker threads by means of ManualResetEvents. I came across the question wherein you might have a number of computational threads and each thread has a number of computational stages. The constraint was that none of the threads can proceed to the next stage 'n+1' unless all threads completed stage 'n'....

Cancellable Thread Pool  Version: 0.00     Price: $0.00  
Total Hits: 1  |  Today: 0Author: Al Gardner      Rating:  
Read Reviews | Write Review |  Your Rating: 

Modern applications need to be aware of much more than their own context, and in particular, need to be aware of the power constraints of the machine that they run upon. More and more users run on laptops with battery constraints and we should program to allow them to conserve battery as it drains away....

Thread variables and the .NET thread pool  Version: 0.00     Price: $0.00  
Total Hits: 0  |  Today: 0Author: Xiangyang Liu      Rating:  
Read Reviews | Write Review |  Your Rating: 

ASP.NET web applications (including web services) use threads in a thread pool to process client requests. These threads are created by the .NET framework, they will be reused to process multiple requests. The number of threads in the pool will increase only when the number of simultaneous client requests increases. Typically, you have no control over which thread would be used to process a particular incoming request, your application could have processed thousands of requests from the users, ...

Personalize ASP.NET 2.0 sites with profiles     
Total Hits: 190  |  Today: 0Author: Tony Patton      Rating:  
Read Reviews | Write Review |  Your Rating: 

Personalization is a key component of most Web applications these days. TechRepublic and Amazon are good examples of sites that remember certain user attributes. Providing such functionality with ASP.NET 1.x required some extra work and the use of the Session object, but version 2.0 simplifies the personalization process....

Practical .NET2 and C#2 - ASP.NET 2.0: Handling a page request on several threads     
Total Hits: 399  |  Today: 0Author: Patrick Smacchia MVP.NET      Rating:  
Read Reviews | Write Review |  Your Rating: 

The execution of a request within the aspnet_wp.exe process is done on the same thread from end to end. For this, ASP.NET uses the I/O threads of the CLR’s thread pool, and can execute multiple requests simultaneously. In addition to avoiding a certain number of concurrency problems by design, this approach is generally more efficient as the reception of requests from a name pipe starts directly on an I/O thread. We then avoid the transmission of information between threads. Since there is no na...

Generic Wrapper for Easy Multithreaded Programming  Version: 0.00     Price: $0.00  
Total Hits: 4  |  Today: 0Author: siglr2      Rating:  
Read Reviews | Write Review |  Your Rating: 

Implementing multithreading in your applications is not always an easy task. For relatively simple solutions, the BackgroundWorker component present in the .NET Framework since version 2.0 provides a straightforward answer....

Fixing BackgroundWorker IsBusy property  Version: 0.00     Price: $0.00  
Total Hits: 6  |  Today: 0Author: Olivier Levrey      Rating:  
Read Reviews | Write Review |  Your Rating: 

Consider this scenario:
- you are using a BackgroundWorker to perform a lengthy operation
- your BackgroundWorker supports cancellation
- you create and launch the BackgroundWorker from the main UI (from a button for example)
- you provide a cancel button, and once it is clicked you want to give control back to the user once the operation is really cancelled....

Multiple Publishers - Multiple Subscribers Communication  Version: 0.00     Price: $0.00  
Total Hits: 5  |  Today: 0Author: Ondrej_Uzovic      Rating:  
Read Reviews | Write Review |  Your Rating: 

This is a simple example showing how to implement the communication scenario where subscribing applications can receive notification messages from more publishing applications....

Themes in Asp.Net 2.0  Version: 0.00     Price: $0.00  
Total Hits: 4  |  Today: 0Author: :Deepika Haridas      Rating:  
Read Reviews | Write Review |  Your Rating: 

A theme is a collection of settings that define the look of controls and web pages (Asp.Net). Themes are applied across all the pages in a Web application to maintain a consistent appearance....

Generic Alert Handler - A Practical Example on Multithreading  Version: 0.00     Price: $0.00  
Total Hits: 4  |  Today: 0Author: Suchi Banerjee, Pune      Rating:  
Read Reviews | Write Review |  Your Rating: 

Recently, I have been developing a number of device monitoring applications where I needed a module like Alert Handler. After going through a couple of iterations, I have arrived at this design which I am going to share with you in this article. This article emphasizes two important points; namely multi-threading and building generic module for reuse....

A basic named lock class  Version: 0.00     Price: $0.00  
Total Hits: 5  |  Today: 0Author: Kurt Mackey      Rating:  
Read Reviews | Write Review |  Your Rating: 

There are a few problems I've come across where synchronizing a particular "name" might be useful. One of the apps I work on makes heavy use of Lucene.NET; each page shows the results of a couple of queries. It doesn't make a whole ton of sense to run multiple, identical queries against Lucene at the same time, so I generate a key for each query, lock against that key, and let the first thread do the actual work while the others sit around sipping coffee....

Task Pattern meets the Command Pattern  Version: 0.00     Price: $0.00  
Total Hits: 4  |  Today: 0Author: Gary J. Kuehn      Rating:  
Read Reviews | Write Review |  Your Rating: 

Communicating across a network can be time consuming manifesting itself as an unresponsive user interface. Avoiding long and non-deterministic operations on the UI thread will not increase overall performance but it will give the user some degree of confidence that the application hasn?t silently died....


1  2  Next >> 


Disclaimer - Privacy
© 2002-2012 DevASP.net