In my case the threads are used simply to carry out a socket connection without wait. The main process makes calls to a module and for each case where a socket connection is to be made a new thread is created to wait for the result of the connection.
All the threads are therefore carrying out the same actien.
Is that the sort of information you were asking for?
Regards
ICD
Main Topics
Browse All Topics





by: ZiaTioNPosted on 2005-08-01 at 08:14:33ID: 14570667
Depends on what each thread is performing. If you have an application that is created in the "worker thread model" then this may be a proper indication. Worker threaded model is a threaded model where each thread performs the same function as the others, it is just load balancing. Examples of applications that may use this are things such as a port scanner or a batch processor.
Say you have 1000 payroll files and you want to scan all the files for a specific term. You could create a worker threaded model to pass off 10 files to each of 10 threads and have them scan for your search term and return any matched results. In this case each thread would be performing the same function on the same amount of data (given the files are relatively same size).