|
|
|
|
|
| | Total Hits: 47 | Today: 0 | Author: Fritz Onion | 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... |
| | Total Hits: 92 | Today: 0 | Author: Brian Otto | 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... |
| | Total Hits: 117 | Today: 0 | Author: Allan McNaughton | 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... |
| | Total Hits: 199 | Today: 0 | Author: Abstractvb.com | 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... |
| | Total Hits: 146 | Today: 0 | Author: Arun Ganesh | 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... |
| | Total Hits: 273 | Today: 0 | Author: John Hind | 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... |
| | Total Hits: 272 | Today: 0 | Author: Xiangyang Liu | 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... |
| | Total Hits: 268 | Today: 0 | Author: balazs_hideghety | 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... |
| | Total Hits: 71 | Today: 0 | Author: Johnny Papa | 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 ... |
| | Total Hits: 223 | Today: 0 | Author: CodeGuru | 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... |
| | Total Hits: 1 | Today: 0 | Author: Matthew Cochran | 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.... |
| | Total Hits: 0 | Today: 0 | Author: Matthew Cochran | 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.... |
| | Total Hits: 0 | Today: 0 | Author: Mike Gold | 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#.... |
| | Total Hits: 1 | Today: 0 | Author: Bechir Bejaoui | 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.... |
| | Total Hits: 0 | Today: 0 | Author: Mohammad Elsheimy | Rating:  |
| |  In this article we will see one of the bad practices developers always do.... |
| | Total Hits: 0 | Today: 0 | Author: DaveyM69 | 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.... |
| | Total Hits: 0 | Today: 0 | Author: Alphakoda | 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:... |
| | Total Hits: 1 | Today: 0 | Author: Ron Fosner | 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.... |
| | Total Hits: 4 | Today: 0 | Author: Thomas Maierhofer | 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.... |
| | Total Hits: 2 | Today: 0 | Author: Thomas Maierhofer | 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... |
|
|
|
|
|
|
|
|
|
|
|
|
|