|
|
|
|
|
| | Total Hits: 6 | Today: 0 | Author: Milton K Baby | 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.... |
| | Total Hits: 5 | Today: 0 | Author: James T. Johnson | 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.... |
| | Total Hits: 3 | Today: 0 | Author: Sacha Barber | 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.... |
| | Total Hits: 4 | Today: 0 | Author: aef123 | 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.... |
| | Total Hits: 5 | Today: 0 | Author: Erika Fuentes | 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.... |
| | Total Hits: 5 | Today: 0 | Author: Gil.Schmidt | 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.... |
| | Total Hits: 4 | Today: 0 | Author: Frank Melber | 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.... |
| | Total Hits: 5 | Today: 0 | Author: smiling4ever | 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.)... |
| | Total Hits: 5 | Today: 0 | Author: Manassypov | 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'.... |
| | Total Hits: 1 | Today: 0 | Author: Al Gardner | 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.... |
| | Total Hits: 0 | Today: 0 | Author: Xiangyang Liu | 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, ... |
| | Total Hits: 190 | Today: 0 | Author: Tony Patton | 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.... |
| | Total Hits: 399 | Today: 0 | Author: Patrick Smacchia MVP.NET | 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... |
| | Total Hits: 4 | Today: 0 | Author: siglr2 | 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.... |
| | Total Hits: 6 | Today: 0 | Author: Olivier Levrey | 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.... |
| | Total Hits: 5 | Today: 0 | Author: Ondrej_Uzovic | Rating:  |
| |  This is a simple example showing how to implement the communication scenario where subscribing applications can receive notification messages from more publishing applications.... |
| | Total Hits: 4 | Today: 0 | Author: :Deepika Haridas | 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.... |
| | Total Hits: 4 | Today: 0 | Author: Suchi Banerjee, Pune | 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.... |
| | Total Hits: 5 | Today: 0 | Author: Kurt Mackey | 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.... |
| | Total Hits: 4 | Today: 0 | Author: Gary J. Kuehn | 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.... |
|
|
|
|
|
|
|
|
|
|
|
|
|