|
Introduction The "Multithreading Backup Utility" or "Backup Multithreading" is an alias for a free backup software utility simply named "Backup". The Backup software application is actually a by-product of an article published on the The Code Project that teaches and demonstrates how to write software in the VB.NET programming language using Multithreading. It is intended to teach beginner and experienced software developers how to write software that uses threads. To this end the Backup utility was created as a software application to provide a practical example of threading. As of the time of this writing (July 2011) this article has been viewed 80,610 times and teaches OOP in VB.NET with the emphasis on multithreading. Article Summary The Backup article contains the source code and tutorial style snippets of code that explain how Object Oriented Programming can be employed to write software that uses 2 threads to copy files. The first thread is used to count files that are to be copied while at the same time, the second thread copies the files. So counting and copying files occurs at the same time as two concurrent processes. Typically counting the files finishes before copying the files as counting files is usually faster. Once all the files have been counted the total number of files to be copied is used to display progress information (a progress bar is shown as a percentage of progress made). The article itself is a useful tutorial that demonstrates thread based programming. Application Features The Backup software application, as a by-product of the article, is a simple to use Windows based software application that will copy files and log errors to a text file should any problems occur whilst copying files. Errors while copying will not stop the Backup application from attempting to copy any remaining files, which means if there is only a problem with one file all the other files will be copied. Backup will also not copy a file that has not changed since the last time it was copied. This allows for faster and more efficient copying of multiple files where some of the files have not changed since the last copy. It also has a batch mode feature which means it can run using the Task Scheduler in Windows with predefined parameters. This is handy for regular backups where user interaction is not required.
|
|
|