Next | 2.0 Threaded program models & scenarious | Prev |
There is one boss thread and one or more worker threads. The boss thread prepares tasks to be done and passes them to the to the appropriate worker thread. This model is common in GUI and server programs.
Several threads are created that do essentially the same thing to different pieces of data. This mirrors and exploits classical parallel processing with a large array of processors. This model may be used for rendering, DNA or encryption cracking, file transfers.
Dividing up a task into a series of independent steps with their own input and output, and passing the result of one thread to the next thread. May easily take advantage of multiple processors and their caching. This model may be used for pipeline or recursive programming.
Next | Perl Threads | Prev |