Is it possible to take existing code, which is not set up for multi-threading and write my own code that basically applies the concept.
Say I have a program that is going to generate a predermined amount of objects and manipulate them in sequential order (one after the other), dragging out runtime.
Is it possible to just implement my own code which would basically thread the process of generating an object and manipulate it, so the loop could just start the process of the next object instantly, and so forth...? Essentially trick the program to thinking that "oh i'm done with this object, start the next" even though that object is being processed by a thread...
//let's say it takes a couple minutes before the next iteration occurs
Above is basic, the software is much more complicated but what i've explained is the basic concept. I just want to create threads to handle the object stuff so instead of it following a linear pattern, they will all be generating and manipulated simultaneously....
Also, the average machine running an application is Quad Core (~2.5ghz x 4), 4gb of RAM...., also furthering the concept to distribute over a newtwork would be very handy too.
Re-writing the software will be painstaking and I would much rather implement a solution to work with the existing code.