|
|
|
|
|
| | Total Hits: 1 | Today: 0 | Author: Mr.PoorEnglish | Rating:  |
| |  Recursive functions can get a little complex when dealing with several vars. Either these vars must become class-members (violating the rule of encapsulation) or they must be passed as parameters through all the recursive (self-)calls.... |
| | Total Hits: 1 | Today: 0 | Author: John Kenedy S.Kom | Rating:  |
| |  For user wanting to test the application without source, run the Downloaded Installer (Download Installer - 965.37 KB) and install the application, then run the application by clicking the short cut in the desktop, open the second tab, and click Add button located below. Manually type source folder location, and destination location, and click Save. Wait for the processing window to close, then click the Hide button. The application will then synchronize the two folders in background. Note that... |
| | Total Hits: 1 | Today: 0 | Author: Amit Ranjan | Rating:  |
| |  With ProcMonitor it is possible to view the processes running under the current user with details such as,
* What Modules(DLL's) are attached, * How many handles and threads are running, * Process version, * etc.... |
| | Total Hits: 2 | Today: 0 | Author: asugix | Rating:  |
| |  If you are using MySQL 5 as a database server, you already know that there are no icons that show whether the server is running or not. You can look at the task manager, but perhaps you want to shutdown the server because the development session is over and the server uses so much memory (about 50 MB). If you installed the server as a service, you can stop the service, but you must have administrator privileges. If MySQL is not run as a service, you can execute a program to start and stop the se... |
| | Total Hits: 1 | Today: 0 | Author: asugix | Rating:  |
| |  I like creating software and for this I need some images for buttons, etc. There are many images you can find for downloading from the internet, but unfortunately, many are in icon format (.ico, .icl, etc) and must be converted before use. You can use many image editors such as PhotoShop, Gimp, Axialis, etc., but you must convert the images one by one. Being kind of lazy, of course I don't like that, so I created an application to automate the process. The function for converting is time consumi... |
| | Total Hits: 1 | Today: 0 | Author: Erika Fuentes and Eric Eilebrecht | Rating:  |
| |  The ongoing technological evolution from single-core to manycore architectures is bringing great benefits. Consider, for instance, a threaded environment where the efficient use of multiple threads can promote better performance through the use of multiple cores and parallelism, for example, an ASP.NET application using multiple threads to make many independent queries to a database.... |
| | Total Hits: 0 | Today: 0 | Author: PEK | Rating:  |
| |  CThread makes it possible to work with threads in MFC pretty much the same way as you do in C#/Java. You derive your own class from CThread and implement Run(void* ). To start the thread, you have to call Start(). Now a new thread starts it's execution in Run(). When Run() is finished, the thread stops its execution.... |
| | Total Hits: 6 | Today: 0 | Author: wili98 | Rating:  |
| |  A few months ago, I had a project to develop an SMS notification gateway center capable of prioritizing incoming messages from a few sources and sending them to mobile operators. In the heart of this system, I decided to build my own component for queuing and prioritization. So, I started to search in the internet for some code to implement the required functionality - a prioritized queue.... |
| | Total Hits: 2 | Today: 0 | Author: Balamurali Balaji | Rating:  |
| |  At the outset, let me tell what a threadpool is. Thread Pooling is an infrastructure that maintains and monitors multiple threads created by one or more applications in your system. It offers you a pool (collection) of worker threads that are managed by the system.... |
| | Total Hits: 1 | Today: 0 | Author: Vitaliy Liptchinsky | Rating:  |
| |  The .NET Framework BCL contains a very nice implementation of a thread pool (the System.Threading.ThreadPool class).
But, this class is not suitable for the following scenarios:
1. Long-running operations. Usually, for long-running operations, it is recommended to use the Thread class. 2. ThreadPool is per process. It means that a situation when there is no available thread in the ThreadPool can happen pretty often. What if you have a very important and emergent work item ... |
| | Total Hits: 0 | Today: 0 | Author: jburrow | Rating:  |
| |  I wrote an article back in June 2004, describing a simple wrapper to the System.Threading.ThreadPool. This enabled sequential processing of queued items on the pool. I have just recently found time to write the second article based on this; however, researching CodeProject.com, I have found numerous new articles documenting similar behaviors. However, I had already written this, so I am publishing as it may be of benefit to someone.... |
| | Total Hits: 0 | Today: 0 | Author: jburrow | Rating:  |
| |  The System.Threading.ThreadPool is an excellent way to process work asynchronously, it offers a simple fire and forget method to processing asynchronously. However, it offers no sequencing of the items to be processed on the thread pool.... |
| | Total Hits: 0 | Today: 0 | Author: logicchild | Rating:  |
| |  One of the problems that Microsoft IT people found about working threads of execution in the Windows Operating System is that while microprocessor speeds have increased dramatically, the same clock interrupt timer was used by default. This was a problem for the time accounting for threads, and how much CPU usage they require. A clock interval timer would fire every 15 ms. At that point, the actual thread in execution would have been charged with the entire 15 ms. In reality, one thread would hav... |
| | Total Hits: 1 | Today: 0 | Author: gtamir | Rating:  |
| |  If you use the System.Threading.ThreadPool object, you know you can create many worker threads. The following code snippet waits until all worker threads have completed, or until the specified timeout.... |
| | Total Hits: 0 | Today: 0 | Author: Xiangyang Liu | Rating:  |
| |  Suppose we are writing a server program that processes requests from clients. If multiple requests can come into the server simultaneously, we can usually get better overall performance by using multiple worker threads to process these requests. In ASP.NET applications, the .NET framework maintains a thread pool to process user requests. Typically, we don't have to do anything with the thread pool itself. In other applications, we may need to create our own thread pool.... |
| | Total Hits: 1 | Today: 0 | Author: logicchild | Rating:  |
| |  Input and output are inherently slow compared with other processing. This slowness is due to several factors:
* Delays caused by track and sector seek time on random access devices, such as disks and CD-ROMs. * Delays caused by a slow data transfer rate between a physical device and system memory. * Delays in network data transfer using file servers, storage area networks, and so on.... |
| | Total Hits: 1 | Today: 0 | Author: Adam Robinson | Rating:  |
| |  A user on StackOverflow recently asked a question about processing items from a Queue T using multiple threads. While a general solution to this problem is to enqueue these operations using the .NET ThreadPool mechanism, often this sort of task can scale itself out of being a feasible candidate for using the ThreadPool fairly easily; too many operations enqueued at once can starve the ThreadPool, and operations that are particularly long-running can monopolize a ThreadPool thread. For this rea... |
| | Total Hits: 0 | Today: 0 | Author: GSerjo | Rating:  |
| |  Different kinds of Thread Pools are available: Smart Thread Pool, BlackHen.Threading, but nothing supports extensions. All Thread Pools are hard coded, and it's too difficult to work with any. I've tried to address these issues:
* A Thread Pool should be extensible and configurable * A Thread Pool should be as simple as possible
So, I've created an Extended Thread Pool. This Thread Pool is written using C# 3.0.... |
| | Total Hits: 1 | Today: 0 | Author: logicchild | Rating:  |
| |  Input/Output operations are normally slower that other processing operations. Synchronous programming is when threads need to wait until they can execute until an I/O routine has completed. When threads can continue to execute without waiting for an operation to complete, we say that threads can perform asynchronous I/O. Stated loosely, asynchronous programming is allowing some portions of code to be executed on separate threads. This is referred to as the Asynchronous Programming Model (APM). T... |
| | Total Hits: 0 | Today: 0 | Author: salysle | Rating:  |
| |  This article shall describe a very simple approach to finding out information regarding the processes currently running on a machine. The demonstration application includes a collection of methods that may be used to search for specific processes using different criteria or to list out running processes.... |
|
|
|
|
|
|
|
|
|
|
|
|
|