Threads 5.3
(5.3.23.4400)
Description :  The threadmare Is Over ! Sample Application

Delphi 2007, 2010, XE

Windows NT Windows 200x Windows XP
Windows 7

Register Now
€65
Buy Now

Threads: Multithreaded Application Model.

I downloaded many multithreaded applications from various sites. None of them was reliable as I wished. I read lots of stuff about race conditions, deadlocks, how can threads corrupt data or starve. I didn't find an entire application (source code) which will implement good protection and threads synchronization, database access, etc.

This is what I tried to accomplish in this application: a model which can be used to start any other multithread application. If you need badly to see some multithreaded code, Threads is for you. If you are in a hurry to deliver a multithread application, here you go; get Threads and I believe in shortest time you will come up with your problem solved. How can you use this stuff? In two ways: learning and/or adding your own code to it. What the sources will give you:

  • threaded database access, using ADO, DBISAM, EDB and Interbase (working in 2 modes: pooling and per request);
  • threaded Indy sending/receiving email, ftp downloading or uploading, ping (you can setup and check a list of web servers);
  • threaded dynamic ReportBuilder reports;
  • a lot (and I mean a lot) of thread management: threads waiting for other threads to process things, threads sharing resources, threads running standalone forcing other threads to quit or blocking other threads from running;
  • threaded folder monitors;
  • threaded PDF file conversions. Currently, Threads.exe can convert Word, Excel and Postscript files to PDF. It uses Ghostscript 9.04 for that matter;
  • threaded WMI events monitoring;
  • core internal wrapper classes that can do the email stuff;
  • core internal sources for processing strings (yeah, we do have SysUtils, StrUtils, but there is still stuff that you can’t find there);
  • core internal sources for directly using WinInet library.

 

Click here to view image (gif  256KB), or check the version history here (jpg 140KB).

Or even better: take a look at my other applications, based entirely on my own threading engine. Take a look at EZ News Reader (jpg 138KB - however, since I'm not in the business of writing a news reader, this project is dead. There are too many newsreaders out there already).  Or the Printer Usage Monitor application.  View some of the core source code here !

Mike Lischke's VirtualTrees are heavily used in this application. Mike's web site is here http://www.soft-gems.net/index.php?option=com_content&task=view&id=12&Itemid=33
Have fun !

Built projects:

The application: setup (4MB) Oct 25, 2011 (included demo data).
This demo is compiled with Delphi XE.

If you like Threads, register it to get full source code and then adapt it even more to suit your needs.

( p.s. I like Martin Harvey's thread tutorial. )

 

You can also download Threads from here:

Version 5.2 available for download! This new edition brings some real life thread workers: real ftp download / upload, converting documents to PDF, sending and processing email and others, WMI Events. Threads 5.2 will only be supported for Delphi 2010 or higher. Tested under Windows 7 with FastMM and madException.

Existing users: this won't be a free upgrade unless you bought Threads during 2010-2011.
Upgrade by request only (as usual)
.