Question: Would you choose multiprocessing or multithreading for a program with 1. task parallelism i.e., perform different tasks on the same data from the same file.
Would you choose multiprocessing or multithreading for a program with 1. task parallelism i.e., perform different tasks on the same data from the same file. 2. data parallelism i.e., perform the same task on different data from different files.why?
Step by Step Solution
3.37 Rating (150 Votes )
There are 3 Steps involved in it
Task parallelism If the tasks are CPUbound and utilize multiple cores efficiently consider multithreading Threads are lightweight and offer faster con... View full answer
Get step-by-step solutions from verified subject matter experts
